From 7612b7e04f96294ee6a91dd3c48cd2a9edcca87d Mon Sep 17 00:00:00 2001 From: realraum Date: Tue, 12 May 2009 22:11:58 +0000 Subject: [PATCH] added O_NOCTTY to open(device) --- door_daemon/door_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.7.10.4