[fpc-devel]Timing out a syscall?

pfv at cooldown.demon.nl pfv at cooldown.demon.nl
Wed Sep 20 08:51:35 CEST 2000

> 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.

More information about the fpc-devel mailing list