I'm writing a multi-threaded server, and I've got to the point where it works, handlings clients simultaneously, but I end up with a lot of zombie processes.
I've read somwhere that I need to write a signal handler to catch the SIGCHLD signal. Is that correct, and if so, how is it implemented? (A link to a tutorial would be fine).

Thanks in advance