]> mj.ucw.cz Git - libucw.git/commit
Main: Implemented safe delivery of signals
authorMartin Mares <mj@ucw.cz>
Wed, 28 Jul 2010 21:56:29 +0000 (23:56 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 18 Aug 2010 16:12:57 +0000 (18:12 +0200)
commitc63f7ec4706e2700ef3a3c6918fb5ba896d00e37
treecf0756dfdc563b50f6ed36500bb9efac6a15573e
parent31179a5dc82ef9fa83d22efaebedd6577a1aa21d
Main: Implemented safe delivery of signals

The current implementation passes the signals through a pipe,
I plan to add signalfd() later.

SIGCHLD handling became the first user of the new signal mechanism.
However, situations in which multiple threads spawn processes using
separate main loops are not supported (we must have a single SIGCHLD
handler for the whole process).
ucw/mainloop.c
ucw/mainloop.h