[PATCH] libc: fix signal handling in system()

Mike Frysinger vapier at gentoo.org
Mon Jan 16 20:32:20 UTC 2012


On Monday 16 January 2012 14:58:25 Rich Felker wrote:
> OK, I'm dyslexic or something and somehow permuted the signal names
> every time I read it. Sorry. I think your approach probably works, but
> it also means system() is completely unsafe to use in multi-threaded
> programs that handle SIGCHLD...

which is acceptable to me.  from the spec:
Using the system() function in more than one thread in a process or when the 
SIGCHLD signal is being manipulated by more than one thread in a process may 
produce unexpected results.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120116/af269f40/attachment-0001.asc>


More information about the uClibc mailing list