Hi and thanks for any help.
I am writing a multi-threaded server but since i am still at the testing phase, i sometimes send a SIGINT to it (Ctrl-C) to stop it. But when i try to put it back up, the socket is still bound to the address. So i thought to capture sigint() and handle cleanup myself, but the POSIX man pages for signal, indicate that the behaviour of signal() is unspecified when in multi-threaded environment.
Also, i am not sure whether this is the correct thread to post.
You thoughts on this? My testing of the code revealed it correctly released the port number, but i am not sure whether using 'unspecified' solutions is ok...