mirror of
https://github.com/postgres/postgres.git
synced 2025-07-20 05:03:10 +03:00
Revert "Blind attempt at a Cygwin fix"
This reverts commit e9282e9532
, which blew
up in a pretty spectacular way. Re-introduce the original code while we
search for a real fix.
This commit is contained in:
@ -212,6 +212,15 @@ write_stderr(const char *fmt,...)
|
||||
vfprintf(stderr, fmt, ap);
|
||||
#else
|
||||
|
||||
/*
|
||||
* On Cygwin, we don't yet have a reliable mechanism to detect when
|
||||
* we're being run as a service, so fall back to the old (and broken)
|
||||
* stderr test.
|
||||
*/
|
||||
#ifdef __CYGWIN__
|
||||
#define pgwin32_is_service() (isatty(fileno(stderr)))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* On Win32, we print to stderr if running on a console, or write to
|
||||
* eventlog if running as a service
|
||||
|
Reference in New Issue
Block a user