[PATCH] libc: fix signal handling in system()
Laurent Bercot
ska-dietlibc at skarnet.org
Tue Jan 17 02:03:19 UTC 2012
> it also means system() is completely unsafe to use in multi-threaded
> programs that handle SIGCHLD...
Yes, and that's not a problem. system() is a horrible interface
anyway, if only because of the automatic shell invocation and
parsing; no self-respecting Unix programmer should ever use it.
system() needs to be implemented for pure standards conformance,
but it can be done as it was conceived, i.e. as a quick and dirty
hack. Please, don't spend more time on it than strictly necessary
and keep your brain power available for more interesting parts of
the libc.
--
Laurent
More information about the uClibc
mailing list