charon-cmd: Block SIGUSR1 on worker threads
authorMartin Willi <martin@revosec.ch>
Tue, 4 Feb 2014 10:14:27 +0000 (11:14 +0100)
committerMartin Willi <martin@revosec.ch>
Thu, 6 Feb 2014 14:57:36 +0000 (15:57 +0100)
commit1df1430146ac80db8966a57254b70c32b0b85f3f
treea4680249d5abd02d25cb805e780ad4174cec49db
parent0edd13b6c85af9baa2d870e82b796f11c5020857
charon-cmd: Block SIGUSR1 on worker threads

To properly shut down charon-cmd with leak reports, only the main thread
should catch SIGUSR1 to shut down the application. Work threads should ignore
SIGUSR1 to avoid any hard application termination.
src/charon-cmd/charon-cmd.c