Browse Source

Use macros instead value

Serj Kalichev 10 years ago
parent
commit
d3d75a0b03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/konfd.c

+ 1 - 1
bin/konfd.c

@@ -528,7 +528,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);
 	}