netsniff-ng: Exit gracefully for all possible termination signals
commit064f4eddf1facae6eb50a7d928c6b049ee4231bf
authorTobias Klauser <tklauser@distanz.ch>
Fri, 21 Feb 2014 17:44:25 +0000 (21 18:44 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 21 Feb 2014 17:48:42 +0000 (21 18:48 +0100)
treec7c6a813b231043c84e9a9d42db9b85ebadf4489
parent1c2d641fc0a17d98b65709309e113e29d8834d9c
netsniff-ng: Exit gracefully for all possible termination signals

Handle all termination signals that we're allowed to handle (SIGKILL
can't be handled) in order to exit gracefully in any regular termination
case. Without this fix, pcap files written by netsniff-ng might be
corrupted.

Reported-by: Mike Westmacott <mikewestmacott@googlemail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.c