1
0
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:
Lennart Poettering
2012-01-05 21:39:31 +01:00
parent 54fe0cdbe3
commit 86b9b8e70d

View File

@ -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 = "";