Commits

Anonymous committed 2d24765

mtpd: Set FD_CLOEXEC on signal pipe.

Comments (0)

Files changed (1)

         log_print(FATAL, "Pipe() %s", strerror(errno));
         exit(SYSTEM_ERROR);
     }
+    fcntl(signals[0], F_SETFD, FD_CLOEXEC);
+    fcntl(signals[1], F_SETFD, FD_CLOEXEC);
 
     timeout = initialize(argc, argv);