restart on HUP
This commit is contained in:
parent
d13f021b8b
commit
cef2672ec8
1 changed files with 4 additions and 2 deletions
|
@ -60,14 +60,16 @@ void Openbox::signalHandler(int signal)
|
|||
switch (signal) {
|
||||
case SIGHUP:
|
||||
// XXX: Do something with HUP? Really shouldn't, we get this when X shuts
|
||||
// down and hangs-up on us.
|
||||
// down and hangs-up on us. we also get a SIGPIPE.
|
||||
printf("Caught HUP signal. Restarting.\n");
|
||||
instance->restart();
|
||||
break;
|
||||
|
||||
case SIGINT:
|
||||
case SIGTERM:
|
||||
case SIGPIPE:
|
||||
printf("Caught signal %d. Exiting.\n", signal);
|
||||
instance->shutdown();
|
||||
|
||||
break;
|
||||
case SIGFPE:
|
||||
case SIGSEGV:
|
||||
|
|
Loading…
Reference in a new issue