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 16:19:00 +0000 (12:19 -0400)
commita80ed3053a3b161d23e7bd57bd227671df047ed0
tree478e2c88af53c452b601b06a854e8af56e2d8bd6
parent978d5d792dfb3f07d4b7166f3037b211f3ed5cc7
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.033717 seconds and 4 git commands to generate.