diff options
author | Tobias Kortkamp <git@tobik.me> | 2017-04-12 15:18:39 +0200 |
---|---|---|
committer | Tobias Kortkamp <git@tobik.me> | 2017-04-15 02:28:57 +0200 |
commit | c9e378f515e5dcce7c143f6a68cb441075e57959 (patch) | |
tree | 1e9e3973c248fe6f59212d1daad807e0f3bab377 /common.c | |
parent | da12c4497881fabcfe72ecdb032d98bc6162d2e9 (diff) |
FreeBSD doesn't have ETIME but both FreeBSD and Linux know ETIMEDOUT
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -648,7 +648,7 @@ ssize_t non_blocking_write(int fd, const void *buf, size_t count) { } else if (rc == 0) { // warn("non-blocking write timeout waiting for pipe to become ready for writing"); rc = -1; - errno = -ETIME; + errno = -ETIMEDOUT; } else { // rc > 0, implying it might be ready ssize_t bytes_written = write(fd, ibuf, bytes_remaining); if (bytes_written == -1) { |