diff options
author | 2001-12-07 22:16:48 +0000 | |
---|---|---|
committer | 2001-12-07 22:16:48 +0000 | |
commit | 5aa4c661ac7d5cff3fca2736a7ab47431f62efd2 (patch) | |
tree | 398dabea38889bdc03e299db07fcf55e3d08b5ef /lib/libc/stdio | |
parent | add ohci and several basic usb devices. (diff) | |
download | wireguard-openbsd-5aa4c661ac7d5cff3fca2736a7ab47431f62efd2.tar.xz wireguard-openbsd-5aa4c661ac7d5cff3fca2736a7ab47431f62efd2.zip |
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 'lib/libc/stdio')
0 files changed, 0 insertions, 0 deletions