mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Check return value of write() in regress.c
This commit is contained in:
parent
59f21fd8fc
commit
c8009d2985
@ -1357,7 +1357,7 @@ static void
|
|||||||
write_a_byte_cb(evutil_socket_t fd, short what, void *arg)
|
write_a_byte_cb(evutil_socket_t fd, short what, void *arg)
|
||||||
{
|
{
|
||||||
char buf[] = "x";
|
char buf[] = "x";
|
||||||
write(fd, buf, 1);
|
if (write(fd, buf, 1) == 1)
|
||||||
++n_write_a_byte_cb;
|
++n_write_a_byte_cb;
|
||||||
}
|
}
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user