- Detect that connection to server has been broken in "net_clear". Since net_clear is always called before we send command to server, we can be sure that server has not received the command.
signal handlers are set up, the blocking flags for sockets are set, and which thread-related functions are used. (Bug #8731)