lkml.org 
[lkml]   [1996]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux bug in pclose

>
> >More, it may be annoying that the linux wait() have now a different
> >behavior than number of other unixes ( Solaris, SunOS, Aix , SVR4 ) .
>
> Actually this is not the case.
> Other unixes do not discard any pending SIGCHLD signals either, as far
> as I know.
>
It is !, just compile the little test program, it works on Solaris, SUNos,
Aix, SVR4 and it does not on Linux 2.0.5 !!

> I still think the new behaviour is better.
> Consider the following
>
> program sets up handler for SIGCHLD
> and creates some child processes
>
> now it calls, for some odd reason, system("sleep 15")
>
> under linux < 2.0.1, any children that exit during the system() call are
> lost! (the signal handler never gets activated)

I also find better not to discard SIGCHLD during system() !
But what seems to be strange, is that the pclose hang in the
sighandler wait() until ANOTHER process finish !

--
===============================================================================
| _ | dan@lectra.fr |
| __/ _ _ o _ / /_) _ _ / _ | |
| (_/ (_(_ / ) ( (-' / /\ (_) (_ /) (-' | May the source be with |
| | you !! |
===============================================================================


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.087 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site