diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-12-07 22:16:49 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-12-07 22:16:49 +0000 |
commit | 301e3e49ce66f692104152d27c10a47f15daaf89 (patch) | |
tree | 3868829a3fb7a1616234ee2f22e60574354d99a7 /usr.sbin/cron/crontab.c | |
parent | a994716ebc6aaf583819900e980c0220350e54da (diff) |
Instead of restoring the tty mode, restoring the signal handler,
unblocking the signal and redelivering it just make all our
signal handler interupt system calls and set a flag. We can just
deliver the signal at the end right before we would normally return.
This solves the SIG_IGN problem nicely and causes readpassphrase() to
return when someone hits ^C even if the handler is SIG_IGN.
Diffstat (limited to 'usr.sbin/cron/crontab.c')
0 files changed, 0 insertions, 0 deletions