[Discuss] Making read() non-restartable
Peter Scott
Peter at PSDT.com
Tue Dec 5 10:41:45 PST 2006
I may be a bit out of my depth here, but I have at least (tried to)
read Stevens on the subject. It appears that read() is restartable by
default. I want it to not be restarted after SIGALRM. How/can I do
that? It's getting restarted even though SA_RESTART was not specified
in sigaction(). And SA_INTERRUPT is a no-op according to
bits/sigaction.h. (Yeah, I'm doing it in Perl, but I straced it so I
could see the system calls and that's where I see read() returning
ERESTARTSYS.)
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com/
http://www.perlmedic.com/
More information about the Discuss
mailing list