summaryrefslogtreecommitdiff
path: root/security/nessus-plugins/files/patch-nmap_wrapper.c
blob: d7e4fc15bb91c297748431d18ce5dfbede0a8ad6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- plugins/nmap_wrapper/nmap_wrapper.c.orig	Wed Aug  7 16:59:06 2002
+++ plugins/nmap_wrapper/nmap_wrapper.c	Fri Aug 16 16:13:48 2002
@@ -612,14 +612,12 @@
  Hostinfos = hostinfos;
  
 #ifdef FAKE_PROGRESS_BAR
+ signal(SIGALRM, SIG_IGN);
+ alarm(0);
  signal(SIGALRM, update_progress_bar);
  alarm(1);
 #endif
  fp = ptycall_nmap (desc, NMAP, argv, &nmap_pid);
-#ifdef FAKE_PROGRESS_BAR
- signal(SIGALRM, SIG_IGN);
- alarm(0);
-#endif
  destroy_argv (argv);
  }