1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-23 05:26:07 +03:00

fix opensolaris warning

This commit is contained in:
Erik Ekman 2008-08-06 18:59:22 +00:00
parent dce8f8352b
commit 9019b0639d

View File

@ -61,7 +61,7 @@ static int daemon(int nochdir, int noclose)
} }
if (!noclose) { if (!noclose) {
if (fd = open("/dev/null", O_RDWR) >= 0) { if ((fd = open("/dev/null", O_RDWR)) >= 0) {
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
dup2(fd, i); dup2(fd, i);
} }