Explorar el Código

Move setsid outside of HP-UX #ifdef

Wichert Akkerman hace 25 años
padre
commit
2c3fea4ac3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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