Fix: Log and ignore SIGINT and SIGTERM in run_as worker
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 29 Sep 2015 16:19:00 +0000 (12:19 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 29 Sep 2015 18:35:03 +0000 (14:35 -0400)
commit8ce28af8cd87de4cbbe2ee2fe490b9abff807ab7
tree2ef59cf10dddf8b9e45eb71089a55f8e7420979c
parentb069221a665b3c7b668633f06eeed49b8f20d01c
Fix: Log and ignore SIGINT and SIGTERM in run_as worker

The run_as worker is in the same process group as its parent and
will receive both SIGINT and SIGTERM. However, we want to give
the worker a chance to tear itself down gracefully when its
parent closes the command socket.

The run_as worker will now ignore these signals (although it will
log them) and wait for the parent to induce the teardown.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/runas.c
This page took 0.025147 seconds and 4 git commands to generate.