mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-27 07:13:33 +02:00
fix opensolaris warning
This commit is contained in:
parent
dce8f8352b
commit
9019b0639d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue