in reply to Re: Process id
in thread Process id

If you're going to be launching processes yourself, don't forget to reap them as well. If you want to catch errors on exit, you'll probably want to call wait or waitpid to do that.