Explorar el Código

Use macros instead value

Serj Kalichev hace 10 años
padre
commit
dc672e4492
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/konfd.c

+ 1 - 1
bin/konfd.c

@@ -592,7 +592,7 @@ int daemonize(int nochdir, int noclose)
 		dup2(fd, STDIN_FILENO);
 		dup2(fd, STDOUT_FILENO);
 		dup2(fd, STDERR_FILENO);
-		if (fd > 2)
+		if (fd > STDERR_FILENO)
 			close(fd);
 	}