Mail Archives: cygwin/2009/11/27/00:54:17
2009/11/27 Dave Steenburgh <dave DOT steenburgh AT gmail DOT com>
>
> cgf wrote:
> > Defunct processes are not necessarily indicative of a cygwin problem.
> > This could easily be a problem with gnuplot.
>
> Given the sum of my own limited knowledge of the problem at hand (in
> summary: every program involved is in my local cygwin directory), I
> figured it was best to ask here first.
>
> Dave Steenburgh wrote:
> > $ ps
> > =A0 =A0 =A0PID =A0 =A0PPID =A0 =A0PGID =A0 =A0 WINPID =A0TTY =A0UID =A0=
=A0STIME COMMAND
> > ...
> > =A0 =A0 4164 =A0 =A01288 =A0 =A07684 =A0 =A0 =A0 5504 =A0 =A06 1003 23:=
49:20 <defunct>
> > =A0 =A0 5392 =A0 =A03224 =A0 =A05984 =A0 =A0 =A0 6100 =A0 =A05 1003 23:=
49:06 <defunct>
> > =A0 =A0 1452 =A0 =A05240 =A0 =A05984 =A0 =A0 =A0 8104 =A0 =A05 1003 23:=
49:06 <defunct>
> > =A0 =A0 5240 =A0 =A03224 =A0 =A05984 =A0 =A0 =A0 4532 =A0 =A05 1003 23:=
49:06 <defunct>
> > ...
> >
> ...
> > The PIDs seem to be the same every time this happens. =A0Specifically, I
> > have seen 5240 and 1452 every time. =A0Whether that's significant, I
> > don't know.
>
> Now, this is interesting... =A0I killed those defunct processes with
> process explorer, and subsequently confirmed via ps, task manager, and
> process explorer that they were no longer running. =A0I began another
> session with gnuplot, and this time there are three:
>
> $ ps
> ...
> =A0 =A0 5240 =A0 =A03224 =A0 =A05984 =A0 =A0 =A0 4532 =A0 =A05 1003 23:49=
:06 <defunct>
> =A0 =A0 4164 =A0 =A01288 =A0 =A07684 =A0 =A0 =A0 5504 =A0 =A06 1003 23:49=
:20 <defunct>
> =A0 =A0 5392 =A0 =A03224 =A0 =A05984 =A0 =A0 =A0 6100 =A0 =A05 1003 23:49=
:06 <defunct>
> ...
>
> For each of those, the entire row is identical to a row in my previous
> message. =A0Since I started the session around 14:00, and the last
> output file's modification timestamp is 17:21, I'd say the timestamps
> for those three processes are not reliable. =A0Is it possible that the
> original defunct processes were never truly killed? =A0If so, can they
> be killed without rebooting?
>
Those defunct function will disapear after parent process exist in *nix.
To avoid this condition, try to handle SIGCHLD and call wait/waitpid to
free resources used by child process
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -