[Ecls-list] CVS HEAD threads and signal handling

Matthew Mondor mm_lists at pulsar-zone.net
Sun Oct 18 23:44:24 UTC 2009


On Sun, 18 Oct 2009 19:10:07 -0400
Matthew Mondor <mm_lists at pulsar-zone.net> wrote:

> That's possible.  In this case, as expected read(2) is interrupted by
> the SIGINT signal and returns error (-1) with errno set to EINTR.  A
> single threaded C application would have the choice to supply a SIGINT
> handler and restart the read(2) syscall, or to tell the signal system
> to automatically restart syscalls (i.e. SA_RESTART bit in sigaction(2)
> man page).

Although I noticed this:
STANDARDS
     The sigaction() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1'').
     The SA_ONSTACK and SA_RESTART flags are Berkeley extensions, available on
     most BSD-derived systems.

So SA_RESTART might be absent from some non-BSD POSIX systems.
-- 
Matt




More information about the ecl-devel mailing list