1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

The macros NULL_DEV and DEVNULL were both used to work around

platform-specific spellings of /dev/null.  But one should be enough, so
settle on DEVNULL.
This commit is contained in:
Peter Eisentraut
2008-12-11 10:25:17 +00:00
parent 21a743e886
commit d9346f2186
3 changed files with 5 additions and 8 deletions

View File

@ -18,7 +18,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.45 2008/02/17 02:09:27 tgl Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/syslogger.c,v 1.46 2008/12/11 10:25:17 petere Exp $
*
*-------------------------------------------------------------------------
*/
@ -184,7 +184,7 @@ SysLoggerMain(int argc, char *argv[])
*/
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