> What's the proper way to time out a socket connect function, or another > syscall? Putting it in a thread and then terminating the thread after X > seconds leaves zombie processes, wich are not good. > use select() to check if there is data before reading data from the socket.