freebsd-ports/net/driftnet/files/patch-driftnet.c
David W. Chapman Jr. aa6fa81be8 Update to 0.1.6
PR:		41806
Submitted by:	maintainer
2002-08-21 19:32:42 +00:00

22 lines
1.1 KiB
C

--- driftnet.c.orig Tue Jul 9 21:26:41 2002
+++ driftnet.c Tue Aug 20 02:30:35 2002
@@ -254,8 +254,8 @@
"\n"
" -h Display this help message.\n"
" -v Verbose operation.\n"
-" -i interface Select the interface on which to listen (default: all\n"
-" interfaces).\n"
+" -i interface Select the interface on which to listen (default: first\n"
+" available interface).\n"
" -p Do not put the listening interface into promiscuous mode.\n"" -a Adjunct mode: do not display images on screen, but save\n"
" them to a temporary directory and announce their names on\n"
" standard output.\n"
@@ -313,7 +313,7 @@
void setup_signals(void) {
int *p;
/* Signals to ignore. */
- int ignore_signals[] = {SIGPIPE, 0};
+ int ignore_signals[] = {SIGPIPE, SIGCONT, SIGHUP, 0};
/* Signals which mean we should quit, killing the display child if
* applicable. */
int terminate_signals[] = {SIGTERM, SIGINT, /*SIGSEGV,*/ SIGBUS, SIGCHLD, 0};