This is the mail archive of the cygwin-developers@sources.redhat.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: testsuite signal handling patch


Hi!

Monday, 04 September, 2000 Sergey Okhapkin sos@prospect.com.ru wrote:

>> btw,  shouldn't  call_handler()  set  signal  handler to SIG_DFL while
>> program is in handler?

SO> It depends of how the handler was set. It's true for signal() call, but the
SO> behavior for sigaction() call should depend of sa_mask and sa_flags fields
SO> of struct sigaction.

i mean that cygwin doesn't seem to honor sa_flags currently. as far as
i    understood    from   sources,   we   should   pass   pointer   to
 pinfo->sigs[signo] and sigsave.func as parameters to _sigreturn;
and  interrupt_now   should  set siga.handler to SIG_DFL, if sa_flags
contains SA_RESETHAND

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19



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