From: florian Date: Thu, 16 Jul 2009 12:51:57 +0000 (+0000) Subject: [package] fix bugs in netdiscover (#5529) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=9dc9482c66af179233bf1f8877a5d5163d81d49f;p=packages.git [package] fix bugs in netdiscover (#5529) git-svn-id: svn://svn.openwrt.org/openwrt/packages@16865 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/net/netdiscover/patches/01-initfix+end-fix.patch b/net/netdiscover/patches/01-initfix+end-fix.patch new file mode 100644 index 000000000..6ba5ffe30 --- /dev/null +++ b/net/netdiscover/patches/01-initfix+end-fix.patch @@ -0,0 +1,34 @@ +diff -Naur netdiscover-0.3-beta6.01machine/src/main.c netdiscover-0.3-beta6/src/main.c +--- netdiscover-0.3-beta6.01machine/src/main.c 2009-06-25 18:19:18.000000000 -0400 ++++ netdiscover-0.3-beta6/src/main.c 2009-07-16 06:37:43.000000000 -0400 +@@ -121,6 +121,8 @@ + node = 67; + pcount = 1; + nokeywait = 0; ++ fastmode = 0; ++ ssleep = 0; + + current_network = (char *) malloc ((sizeof(char)) * 16); + sprintf(current_network,"Starting."); +@@ -250,7 +252,6 @@ + } + } + +- + return 0; + } + +@@ -299,9 +300,10 @@ + lnet_destroy(); + if (inject->scan_secs > 0) { + sleep(inject->scan_secs); +- pthread_kill(*(inject->sniffer), SIGKILL); +- pthread_kill(*(inject->screen), SIGKILL); +- pthread_kill(*(inject->keys), SIGKILL); ++ pthread_kill(*(inject->sniffer), SIGTERM); ++ pthread_kill(*(inject->screen), SIGTERM); ++ pthread_kill(*(inject->keys), SIGTERM); ++ sighandler(SIGTERM); + } + + return NULL;