Another process creation bug
Christopher Faylor
cgf@redhat.com
Fri Oct 12 05:42:00 GMT 2001
On Fri, Oct 12, 2001 at 03:47:10AM -0700, Robert Legros wrote:
>Hi,
>
>I think I found another process creation bug. When a
>process is created, it may happen that it is created
>twice in the process list.
>
>For example, type the following command :
> ps -W | less
>
>You may sometimes (not always) get such a result :
> PID PPID PGID WINPID TTY UID
>STIME COMMAND
> 1372 1 1372 1372 con 1001
>12:23:38 /usr/bin/bash
> 1232 1372 1064 1232 con 1001
>12:24:05 /usr/bin/less
> 1064 1372 1064 972 con 1001
>12:24:05 /usr/bin/ps
> 1340 0 0 1340 ? 0
>12:24:05 *** unknown ***
>
>The Windows Task Manager gives the following
>information :
> - bash.exe is Windows process 1372
> - less.exe is Windows process 1340
> - ps.exe has already died
"That's the way it works" (tm)
This is an AFAIK unavoidable race condition.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list