From: realraum Date: Tue, 12 May 2009 22:11:58 +0000 (+0000) Subject: added O_NOCTTY to open(device) X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=7612b7e04f96294ee6a91dd3c48cd2a9edcca87d;p=svn42.git added O_NOCTTY to open(device) --- diff --git a/door_daemon/door_daemon.c b/door_daemon/door_daemon.c index 6b991db..f8a3982 100644 --- a/door_daemon/door_daemon.c +++ b/door_daemon/door_daemon.c @@ -451,7 +451,7 @@ int main(int argc, char* argv[]) fclose(pid_file); } - int door_fd = open(opt.door_dev_, O_RDWR); + int door_fd = open(opt.door_dev_, O_RDWR | O_NOCTTY); if(door_fd < 0) { log_printf(ERROR, "unable to open %s: %s", opt.door_dev_, strerror(errno)); options_clear(&opt);