Ver código fonte

Move setsid outside of HP-UX #ifdef

Wichert Akkerman 24 anos atrás
pai
commit
2c3fea4ac3
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      utils/start-stop-daemon.c

+ 2 - 1
utils/start-stop-daemon.c

@@ -1209,9 +1209,10 @@ main(int argc, char **argv)
 			exit(0);
 		}
 		 /* child continues here */
-#if defined(OShpux)
+
 		/* create a new session */
 		setsid();
+#if defined(OShpux)
 		 /* now close all extra fds */
 		for (i=sysconf(_SC_OPEN_MAX)-1; i>=0; --i) close(i);
 #else