[vlc-devel] Re: vlc: svn commit r19402 (fenrir)

Rémi Denis-Courmont rem at videolan.org
Sun Mar 25 09:56:46 CEST 2007


Le dimanche 25 mars 2007 01:54, Laurent Aimar a écrit :
>  All ?
>  SIGCHLD is currently not ignored and that's the one doing it
> in my case (probably because system() is called by screensaver.c)
>  Btw, ignoring SIGCHLD is not an option...

SIGCHLD *is* ignored by default (man 7 signal). In fact, system() itself 
blocks SIGCHLD (man system)!! Proprely written code uses wait() anyway 
regardless of SIGCHLD.

>  So that leaves us with checking for EINTR every where we have to...

Completely disagree. Properly multithreaded programs block all signals 
in every single threads, except in specific threads that might NEED to 
receive them; and in particular, they do not allow one thread to signal 
a random other one.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070325/ff8d535a/attachment.sig>


More information about the vlc-devel mailing list