Nmap Development mailing list archives
Re: Error handling + Mutexes
From: Fyodor <fyodor () insecure org>
Date: Thu, 23 Oct 2008 21:18:16 -0700
On Fri, Oct 10, 2008 at 10:34:32AM -0500, Ron wrote:
A bug David noticed in my code reminded me of something I've been meaning to ask -- if I use a mutex in my code, and then I have a runtime error, the mutex is never unlocked and Nmap will sit forever.
I agree that we need to handle this better. Perhaps when a thread holding a mutex dies, we should print a warning message and unlock it. A mysterious infinite loop is clearly not the ideal behavior. As Patrick noted, this indicates a serious problem with the script. So a warning message certainly seems warranted. Cheers, -F _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Error handling + Mutexes Ron (Oct 10)
- Re: Error handling + Mutexes Patrick Donnelly (Oct 10)
- Re: Error handling + Mutexes Fyodor (Oct 23)