mirror of
https://github.com/systemd/systemd.git
synced 2025-08-04 12:22:23 +03:00
sd-journal: close reading side of sd_journal_stream_fd() file descriptors
This commit is contained in:
@ -233,6 +233,11 @@ _public_ int sd_journal_stream_fd(const char *tag, int priority, int priority_pr
|
||||
return -errno;
|
||||
}
|
||||
|
||||
if (shutdown(fd, SHUT_RD) < 0) {
|
||||
close_nointr_nofail(fd);
|
||||
return -errno;
|
||||
}
|
||||
|
||||
if (!tag)
|
||||
tag = "";
|
||||
|
||||
|
Reference in New Issue
Block a user