Re: [gtk-list] Defunct processes after fork/_exit




On Fri, 16 Jul 1999 robert_gasch@peoplesoft.com wrote:
> I've written some code that forks and does some useful
> work in the child process. While the child process is executing,
> everything is fine, but once it terminates and calls _exit(0) the
> process listing shows it as being defunct:
>...
> 
> Any idea what I might be doing wrong to cause this?

You have to wait() or waitpid() on the child. Then it will be removed from
the process list.

Cheers

Conrad



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]