in reply to Re^2: fork - alarm - output
in thread fork - alarm - output
That's what I'm using now for the other case. It would require twice as much code as needed, but it's definitely an option. I'm not fond of using alarm, so I might very well end up using select as well.