writeordie() was buggy; delete the == 1 which makes no sense.
This commit is contained in:
parent
3d76fbeedc
commit
c03be059f5
@ -71,7 +71,7 @@ gid_t ifch_gid = 0;
|
|||||||
|
|
||||||
static void writeordie(int fd, const char *buf, size_t len)
|
static void writeordie(int fd, const char *buf, size_t len)
|
||||||
{
|
{
|
||||||
ssize_t r = safe_write(fd, buf, len) == -1;
|
ssize_t r = safe_write(fd, buf, len);
|
||||||
if (r < 0 || (size_t)r != len)
|
if (r < 0 || (size_t)r != len)
|
||||||
suicide("%s: (%s) write failed: %d", client_config.interface,
|
suicide("%s: (%s) write failed: %d", client_config.interface,
|
||||||
__func__, r);
|
__func__, r);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user