[RFC] Signal Handler in Nping

Varunram Ganesh via dev <[email protected]>
Newsgroups gmane.comp.security.nmap.devel
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.