Fri Feb 19 16:58:53 IST 2007 Mark McLoughlin <markmc@redhat.com>

* qemud/qemud.c: handle SIGQUIT.
This commit is contained in:
Mark McLoughlin 2007-02-19 16:59:15 +00:00
parent 10041b979d
commit 272639aaac
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Fri Feb 19 16:58:53 IST 2007 Mark McLoughlin <markmc@redhat.com>
* qemud/qemud.c: handle SIGQUIT.
Mon Feb 19 09:38:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* qemud/bridge.c, qemud/conf.c: Fixed int -> char casts to deal

View File

@ -129,6 +129,7 @@ static int qemudDispatchSignal(struct qemud_server *server)
break;
case SIGINT:
case SIGQUIT:
case SIGTERM:
qemudLog(QEMUD_WARN, "Shutting down on signal %d", sigc);
server->shutdown = 1;
@ -1610,6 +1611,7 @@ int main(int argc, char **argv) {
sigaction(SIGHUP, &sig_action, NULL);
sigaction(SIGINT, &sig_action, NULL);
sigaction(SIGQUIT, &sig_action, NULL);
sigaction(SIGTERM, &sig_action, NULL);
sigaction(SIGCHLD, &sig_action, NULL);