Nmap Development mailing list archives

[RFC] Signal Handler in Nping


From: Varunram Ganesh via dev <dev () nmap org>
Date: Sun, 2 Apr 2017 05:33:31 +0000 (UTC)

Greetings list,

This was brought up earlier in [1] but there were no changes or follow-ups to the same. The current signal handler 
function that nping uses uses a lot of function calls that are not async signal safe - fflush, exit(), nping_warning 
(which subsequently uses printf) among other functions. It would be wise to implement the same using functions from the 
standard set of async safe functions provided at [2]. What are your thoughts on this?

Cheers,Varunram

[1] http://seclists.org/nmap-dev/2009/q3/0596.html[2] http://man7.org/linux/man-pages/man7/signal-safety.7.html



_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: