]> git.ipfire.org Git - thirdparty/qemu.git/commit - qemu-nbd.c
qemu-nbd: trap SIGTERM
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Nov 2011 14:51:19 +0000 (15:51 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Nov 2011 13:02:58 +0000 (14:02 +0100)
commitbb345110f091af3aac32038a45a8776fc9fb505d
tree06e72f242b9f989cf5377d8d209496412747d180
parent74624688b3c003d1ed2763953aaf59974965fa22
qemu-nbd: trap SIGTERM

The client process right now uses SIGTERM to interrupt the server side.
This does not affect the exit status of "qemu-nbd -v -c" because the
server is a child process.  This will change when both sides will be
in the same process, and anyway cleaning up things nicely upon SIGTERM
is good practice.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-nbd.c