Nmap Development mailing list archives
Re: Nmap doesn't register signal handlers
From: "Luis M." <luis.mgarc () gmail com>
Date: Wed, 12 Aug 2009 10:53:05 +0100
ithilgore wrote:
Hello. While experimenting with signal handlers in Ncrack, I noticed that Nmap never registers the sigdie() handler. This is caused, because there is no check in the configure.ac for the signal function, and thus HAVE_SIGNAL stays always undefined. You can see that the signal handler doesn't work, because no message is printed whenever you press Ctrl+C to stop Nmap from continuing. Normally, something like "caught SIGNAL <signame>, cleaning up" should be printed, according to sigdie():
Hi Ithilgore, David and I were discussing the exact same issue yesterday. You can change nmap's source to handle HAVE_SIGNAL properly. Here is what David told me: David Fifield wrote:
On Tue, Aug 11, 2009 at 06:17:05PM +0100, Luis M. wrote:By the way. I included the HAVE_SIGNAL check because that's what nmap does. However, Nmap also doesn't include the check in its configure script so the line signal(SIGSEGV, sigdie) in nmap.cc never gets compiled. Do you think I should add the test to nmap's configure.ac?Yes, please do that. Send a note to nmap-dev saying what you did because that code has probably been disabled for a long time and enabling it might have unexpected consequences. You can do the check in a simpler way: AC_CHECK_FUNCS([signal]) David Fifield
Regards, Luis. _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Nmap doesn't register signal handlers ithilgore (Aug 11)
- Re: Nmap doesn't register signal handlers Luis M. (Aug 12)
- Re: Nmap doesn't register signal handlers Solar Designer (Aug 12)
- Re: Nmap doesn't register signal handlers doug (Aug 12)
- Re: Nmap doesn't register signal handlers Fyodor (Aug 13)
