in reply to Re^3: fork - alarm - output
in thread fork - alarm - output

AFAIK buffered read didn't lost data. My sample didn't use die to break main loop, instead of that i rely on pipe close.

One critical part is close $pipe in parent's signal handler, it segfaults in perl 5.10.1