[Jslib] Re: spawn (run) results in defunct processes
Jesse Ruppell
jesser@oeone.com
Tue, 18 Feb 2003 18:01:07 -0500
Jesse Ruppell wrote:
> I have found that when I use 'spawn' (now deprecated in favour of 'run')
> to launch a new process, when that process completes it remains in the
> process list as a defunct process. Those defunct processes are only
> cleaned up once the app which spwned them exits.
>
> Is this a known issue? Could there be something strange in my
> environment that is causing this? I am running RedHat 8.0, and using a
> version of spawn that has no functional differences from the most recent
> code in cvs (only formatting differences).
>
> Jesse Ruppell
> OEone Corp
Never mind. The problem is that we have changed the backend of our
spawn functionality to workaround another problem. Before calling
execv, STDOUT and STDERR are being be closed and reattached to
/dev/null. Now we will have to revisit that solution to be able to get
an exit status.