supply O_NOCTTY to open(2) in get_fd_tty()

pull/1809/head
nick black 3 years ago
parent f2c8cd31c8
commit 8022faf2c0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -474,7 +474,7 @@ int get_tty_fd(FILE* ttyfp){
}
}
if(fd < 0){
fd = open("/dev/tty", O_RDWR | O_CLOEXEC);
fd = open("/dev/tty", O_RDWR | O_CLOEXEC | O_NOCTTY);
if(fd < 0){
loginfo("Error opening /dev/tty (%s)\n", strerror(errno));
}else{

Loading…
Cancel
Save