Commit 186dfb16 by Tycho Andersen

lxc.init: ignore SIGHUP

see comment for details. Signed-off-by: 's avatarTycho Andersen <tycho@tycho.ws>
parent d4b5d7a8
...@@ -382,6 +382,17 @@ int main(int argc, char *argv[]) ...@@ -382,6 +382,17 @@ int main(int argc, char *argv[])
switch (was_interrupted) { switch (was_interrupted) {
case 0: case 0:
/* Some applications send SIGHUP in order to get init to reload
* its configuration. We don't want to forward this onto the
* application itself, because it probably isn't expecting this
* signal since it was expecting init to do something with it.
*
* Instead, let's explicitly ignore it here. The actual
* terminal case is handled in the monitor's handler, which
* sends this task a SIGTERM in the case of a SIGHUP, which is
* what we want.
*/
case SIGHUP:
break; break;
case SIGPWR: case SIGPWR:
case SIGTERM: case SIGTERM:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment