commit f5c5a803b516c2246339cec5e576f7e227729554
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Mon Dec 4 22:37:14 2017 +0100
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Mon Dec 4 22:37:14 2017 +0100
Fix typo bug found by Michael McConville
Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
diff --git a/src/util/efunc.h b/src/util/efunc.h
index 12608f8..3b21270 100644
--- a/src/util/efunc.h
+++ b/src/util/efunc.h
_AT_@ -69,7 +69,7 @@ ewrite(int fd, void *buf, size_t n, const char *fname)
{
ssize_t ret = write(fd, buf, n);
if (ret < 0) {
- if (errno = ECONNRESET)
+ if (errno == ECONNRESET)
raise(SIGPIPE);
eprintf("write %s:", fname);
}
Received on Mon Dec 04 2017 - 22:37:22 CET
This archive was generated by hypermail 2.3.0
: Mon Dec 04 2017 - 22:48:35 CET