added O_NOCTTY to open(device)
authorrealraum <realraum@realraum.at>
Tue, 12 May 2009 22:11:58 +0000 (22:11 +0000)
committerrealraum <realraum@realraum.at>
Tue, 12 May 2009 22:11:58 +0000 (22:11 +0000)
door_daemon/door_daemon.c

index 6b991db..f8a3982 100644 (file)
@@ -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);