This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Signal handling - HELP!


Hi Sergey, you wrote:

: Ian Collins wrote:
: > When a signal (e.g. SIGALRM) is triggored while in certain system calls
: > (e.g, read), the POSIX signal definition states that after completion of
: > the signal handler, the system call can be made to continue (SA_RESTART)
: > or to return with an error status set.
: 
: There is no way to interrupt win32 syscalls...

other then not letting them block in the first place, and use asynchronous
versions instead, implementing an interruptable "block" in cygwin.dll.
If memory serves, NT calls that "overlapped I/O".
Or or there any NT calls for which this is impossible?

BTW, I also use alarm(60) and hope fgets()/write() on a socket return and
set errno to EINTR for timeout. So far, I haven't really tested under NT...


Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]