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)
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>

No differences found
This page took 0.026699 seconds and 5 git commands to generate.