diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-01-28 18:23:38 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-01-28 19:07:12 -0500 |
commit | 87b0284327e34a4b96c22085fa2cdb3219294991 (patch) | |
tree | 3dfa856eb4ee93e6e7808f442a7dd14daff00d8e /src/journal | |
parent | 7b36bf82c4deeadef6d914cef750b4a51ff2ed48 (diff) |
Get rid of write_safe
Current glibc implementation is safe. Kernel does this atomically,
and write is actually implemented through writev. So if write is
async-signal-safe, than writev pretty much must be too.
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journal-send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c index 960c5776b0..ca9199f718 100644 --- a/src/journal/journal-send.c +++ b/src/journal/journal-send.c @@ -314,7 +314,7 @@ _public_ int sd_journal_sendv(const struct iovec *iov, int n) { if (buffer_fd < 0) return buffer_fd; - n = writev_safe(buffer_fd, w, j); + n = writev(buffer_fd, w, j); if (n < 0) { close_nointr_nofail(buffer_fd); return -errno; |