diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/utils/elog.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index f53607e12eb..f98a1e8b629 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -453,4 +453,10 @@ extern void set_syslog_parameters(const char *ident, int facility); */ extern void write_stderr(const char *fmt,...) pg_attribute_printf(1, 2); +/* + * Write a message to STDERR using only async-signal-safe functions. This can + * be used to safely emit a message from a signal handler. + */ +extern void write_stderr_signal_safe(const char *fmt); + #endif /* ELOG_H */ |