netsniff-ng: Rotate pcap files prematurely on SIGHUP
commit46289df6bc8f573bc01be4fb4aa93343ecc6d50a
authorTobias Klauser <tklauser@distanz.ch>
Mon, 27 Apr 2015 08:50:14 +0000 (27 10:50 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 27 Apr 2015 08:50:14 +0000 (27 10:50 +0200)
treeb355d320240b020b76392bc3d029c3f5be5a66fc
parentf67e23ce04eeb7d6fc8aae9542879cfe0d6aedf9
netsniff-ng: Rotate pcap files prematurely on SIGHUP

Allow to send SIGHUP to a running netsniff-ng process, causing it to
prematurely rotate the output PCAP when the output device (-o/--out) is
a directory. The rotating interval (time/file size) will be reset.

Suggested by dcode in #140

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.8
netsniff-ng.c