fix opensolaris warning
This commit is contained in:
parent
21ad2ef5ae
commit
c01f42fd0f
|
@ -61,7 +61,7 @@ static int daemon(int nochdir, int 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++) {
|
||||
dup2(fd, i);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue