in reply to Re^2: Detect socket
in thread Detect socket
huh? My update just checks if socket uses the first available file descriptor. It doesn't check if some number is a socket descriptor. It doesn't even check if some number is any kind of valid file descriptor.