anonymous
2008-04-08 16:11:43 UTC
I have a while loop that calls the system read() function.
read() blocks while waiting for input. I need to implement a timer that would unblock read() after 3 seconds (given that read did not actually read any input). I have a timer implemented via setitimer() system call. I wondering if I should be using something like sigaction, or some other signal call. All this is in Linux. Thanks for a any tips!!