diff options
author | mestre <mestre@openbsd.org> | 2017-08-22 16:32:37 +0000 |
---|---|---|
committer | mestre <mestre@openbsd.org> | 2017-08-22 16:32:37 +0000 |
commit | 2db3b77d97066bf441669dcac0dd5243ee3c0bad (patch) | |
tree | e45ebdda71463b0cb9e166c7309ccaada2715fae /usr.sbin/amd | |
parent | Use waitpid()/EINTR idiom for the specific pid, rather than generic wait(), (diff) | |
download | wireguard-openbsd-2db3b77d97066bf441669dcac0dd5243ee3c0bad.tar.xz wireguard-openbsd-2db3b77d97066bf441669dcac0dd5243ee3c0bad.zip |
Call isatty(3) prior to ioctl(TIOCEXCL) to check if cu(1) was invoked on a
non-TTY and if that's the case then close the application. Otherwise without
this verification if it's really a non-TTY then cu(1) will be aborted by
pledge(2).
feedback and OK by deraadt@
Diffstat (limited to 'usr.sbin/amd')
0 files changed, 0 insertions, 0 deletions