I found the problem. I tested my accept function and it returns sometimes error, this makes fork twice. One check of returned value of accept fixed my prob.
i'm stupid sorry!!!!
Type: Posts; User: xmariux
I found the problem. I tested my accept function and it returns sometimes error, this makes fork twice. One check of returned value of accept fixed my prob.
i'm stupid sorry!!!!
Thanks a lot man for your answer. I was thinking about this but i don't know how and if the signal function is called. I put a sleep function on parent for 3 secs and it prints normal things. Now...
First of all hello,i'm new to this forum!
I have a prob with the fork function(or i think that i have) and i am confused.
I have this program
void bypass_sigint(int sig_no)
{
...