LP1203791 SIGTERM graceful shutdown (C) user/berick/lp1203791-sigterm-shutdown-in-c
authorBill Erickson <berick@esilibrary.com>
Mon, 22 Jul 2013 20:44:26 +0000 (16:44 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 22 Jul 2013 21:08:13 +0000 (17:08 -0400)
commita9cf9d5c8bfbd016622388a23e581423159fb0e4
treea93bb4fbeb19757d79544a32bb5ba2eac15906d6
parent93c469f4114b962e23cc18d076427e93f46ef3af
LP1203791 SIGTERM graceful shutdown (C)

When a TERM signal is received, the listener parent process will wait
for all child processes to complete any active tasks before killing the
child processes and shutting down.

Receiving a SIGINT or SIGQUIT results in a non-graceful shutdown.

In all cases, the system first un-registers with all routers.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
src/libopensrf/osrf_prefork.c