You need to use waitpid
Kiel R Stirling
In reply to Re: Forks (not waiting for children) by kielstirling in thread Forks (not waiting for children) by Anonymous Monk