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:
@ -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
|
||||
|
Reference in New Issue
Block a user