in reply to Re: Async IO / signals
in thread Async IO / signals

read(2) is safe to call in a signal handler, I've checked W. Richard Stevens' Advanced Programming in the Unix Environment for confirmation. Of course, you would need the buffer to be allocated beforehand to use read in a perl signal handler to avoid a malloc.

Replies are listed 'Best First'.
Re: Re: Re: Async IO / signals
by sgifford (Prior) on Apr 20, 2004 at 15:12 UTC
    Agreed. I just verified that in my copy of APUE.