I have written a C program on Unix, which uses fork(), and it's doing something unexpected!!
The child process created handles an incoming connection to a socket, then exits, while the parent waits for another request. I've noticed though that a 'ps' command shows a set of processes called , one for each time a child has been created and exited.
Can anyone tell me how I can stop this, or if I even need to worry about it (If I kill the parent, all the processes disappear.
Thanks in advance.