summaryrefslogtreecommitdiffstats
path: root/usr.sbin/amd
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2017-08-22 16:32:37 +0000
committermestre <mestre@openbsd.org>2017-08-22 16:32:37 +0000
commit2db3b77d97066bf441669dcac0dd5243ee3c0bad (patch)
treee45ebdda71463b0cb9e166c7309ccaada2715fae /usr.sbin/amd
parentUse waitpid()/EINTR idiom for the specific pid, rather than generic wait(), (diff)
downloadwireguard-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