summaryrefslogtreecommitdiff
path: root/net-mgmt/driftnet/files/patch-driftnet.c
blob: fce26e723f958590e5f45f9b81f79652ca5ce09e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- 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};