1
0
Selaa lähdekoodia

Use macros instead value

Serj Kalichev 10 vuotta sitten
vanhempi
commit
dc672e4492
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);
 	}