Skip to content

Commit efd923a

Browse files
author
hackorum
committed
Apply logging-init-errno-v1.patch
1 parent b597835 commit efd923a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/common/logging.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ pg_logging_init(const char *argv0)
159159
sgr_locus = SGR_LOCUS_DEFAULT;
160160
}
161161
}
162+
163+
/*
164+
* isatty() may fail, setting errno to ENOTTY if running for example
165+
* TAP tests that depend on IPC::Run, so reset properly.
166+
*/
167+
errno = 0;
162168
}
163169

164170
/*

0 commit comments

Comments
 (0)