diff --git a/man/sd_journal_get_fd.xml b/man/sd_journal_get_fd.xml index 24ececd9cb..b15fc1728c 100644 --- a/man/sd_journal_get_fd.xml +++ b/man/sd_journal_get_fd.xml @@ -233,12 +233,12 @@ else { Signal safety - In general, sd_journal_get_fd(), - sd_journal_get_events(), and sd_journal_get_timeout() - are not "async signal safe" in the meaning of - signal7. - Nevertheless, only the first call to any of those three functions performs unsafe operations, so - subsequent calls are safe. + In general, sd_journal_get_fd(), sd_journal_get_events(), and + sd_journal_get_timeout() are not "async signal safe" in the meaning of + signal-safety7. + Nevertheless, only the first call to any of those three functions performs unsafe operations, so subsequent calls + are safe. sd_journal_process() and sd_journal_wait() are not safe. sd_journal_reliable_fd() is safe. diff --git a/man/sd_journal_print.xml b/man/sd_journal_print.xml index f771ba307f..038d3bbbd4 100644 --- a/man/sd_journal_print.xml +++ b/man/sd_journal_print.xml @@ -205,8 +205,8 @@ sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid( Thread safety All functions listed here are thread-safe and may be called in parallel from multiple threads. - sd_journal_sendv() is "async signal safe" in the meaning of - signal7. + sd_journal_sendv() is "async signal safe" in the meaning of signal-safety7. sd_journal_print, diff --git a/man/sd_journal_stream_fd.xml b/man/sd_journal_stream_fd.xml index b9da483713..13972aea7c 100644 --- a/man/sd_journal_stream_fd.xml +++ b/man/sd_journal_stream_fd.xml @@ -94,6 +94,10 @@ It is recommended that applications log UTF-8 messages only with this API, but this is not enforced. + + Each invocation of sd_journal_stream_fd() allocates a new log stream file descriptor, + that is not shared with prior or later invocations. The file descriptor is write-only (its reading direction is + shut down), and O_NONBLOCK is turned off initially. @@ -106,8 +110,8 @@ Signal safety - sd_journal_stream_fd() is "async signal safe" in the meaning of - signal7. + sd_journal_stream_fd() is "async signal safe" in the meaning of signal-safety7. diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c index b322127a4e..73329ba024 100644 --- a/src/journal/journal-send.c +++ b/src/journal/journal-send.c @@ -416,7 +416,7 @@ _public_ int sd_journal_stream_fd(const char *identifier, int priority, int leve if (shutdown(fd, SHUT_RD) < 0) return -errno; - fd_inc_sndbuf(fd, SNDBUF_SIZE); + (void) fd_inc_sndbuf(fd, SNDBUF_SIZE); identifier = strempty(identifier);