1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-16 08:40:19 +02:00

* scmsigs.c (sys_deliver_signals): add a comment about a probable bug.

This commit is contained in:
Gary Houston 1997-06-14 19:04:24 +00:00
parent e320da2fb9
commit cc0b331281
2 changed files with 10 additions and 0 deletions

View file

@ -140,6 +140,12 @@ sys_deliver_signals (void)
{
if (got_signal[i])
{
/* The flag is reset before calling the handler in case the
handler doesn't return. If the handler doesn't return
but leaves other signals flagged, they their handlers
will be applied some time later when the async is checked
again. It would probably be better to reset the flags
after doing a longjmp. */
got_signal[i] = 0;
#ifndef HAVE_SIGACTION
signal (i, take_signal);