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