# | Line 225 | Line 225 | close_standard_fds(void) | |
---|---|---|
225 | for (i = 0; i < LOWEST_SAFE_FD; i++) | |
226 | { | |
227 | close(i); | |
228 | < | if (open(PATH_DEVNULL, O_RDWR) < 0) |
228 | > | if (open("/dev/null", O_RDWR) < 0) |
229 | exit(-1); /* we're hosed if we can't even open /dev/null */ | |
230 | } | |
231 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines (old) |
> | Changed lines (new) |