]> git.sesse.net Git - vlc/commit
Block SIGCHLD so we don't get polluted by system() in another thread[1]
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 25 Mar 2007 09:56:25 +0000 (09:56 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 25 Mar 2007 09:56:25 +0000 (09:56 +0000)
commitd215ca3f3504e426bb1b8779a7bc391fb19cdfff
treea3369f81291bebe863961e79ffa702b3f9f2f113
parent619f831bebde76ee6582262ac75be923b82615ee
Block SIGCHLD so we don't get polluted by system() in another thread[1]
(though this seem to only happen with debuggers and (?)broken OSes)

[1] system() blocks SIGCHLD, and is probably not intended for multithreading

We cannot assume that blocking calls in other libraries ignore EINTR anyway,
so the only safe approach is to block in all threads (you can unblock it in
your thread if you really want it) except the signal handling thread.
src/network/io.c
src/vlc.c