[server] minor code restructure, use FD_ISSET() test on file descriptors
[server] allow loop restart after select() sets EINTR (since we handle signals) - fixes cmd execution through UDP on FreeBSD