help-octave
[Top][All Lists]
Advanced

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

Re: Print plot error


From: Rob Mahurin
Subject: Re: Print plot error
Date: Mon, 24 Aug 2009 21:26:09 -0400

On Aug 24, 2009, at 9:14 PM, Ben Abbott wrote:
Sorry for my lack ... but will waitpid kill non-zombie children?

There is an active gnuplot for each figure window. Would wiatid terminate those children as well?

No, see the man page for the wait4() and waitpid() system calls.

waitpid(-1,0) will hang if there are children still running, but
waitpid(-1,WNOHANG) will just return zero.

If there are not children running, waitpid(-1,anything) should just return -1.

Don't believe me, test it.

Rob

--
Rob Mahurin
University of Manitoba, Dept. of Physics & Astronomy
at:     Oak Ridge National Laboratory   865 207 2594
        Oak Ridge, Tennessee            address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]