platform-specific spellings of /dev/null. But one should be enough, so
settle on DEVNULL.
ExitPostmaster(1);
}
#endif
- i = open(NULL_DEV, O_RDWR, 0);
+ i = open(DEVNULL, O_RDWR, 0);
dup2(i, 0);
dup2(i, 1);
dup2(i, 2);
*/
if (redirection_done)
{
- int fd = open(NULL_DEV, O_WRONLY, 0);
+ int fd = open(DEVNULL, O_WRONLY, 0);
/*
* The closes might look redundant, but they are not: we want to be
#define PG_BINARY_W "w"
#endif
-/* These are for things that are one way on Unix and another on NT */
-#define NULL_DEV "/dev/null"
-
/*
* Provide prototypes for routines not present in a particular machine's
* standard C library.