mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-19 01:02:32 +03:00
monkey: Report the errno when select() returns -1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
6a9137f431
commit
f7d97d6483
@ -23,6 +23,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "utils/config.h"
|
||||
#include "utils/sys_time.h"
|
||||
@ -306,6 +307,7 @@ static void monkey_run(void)
|
||||
&exc_fd_set,
|
||||
timeout);
|
||||
if (rdy_fd < 0) {
|
||||
NSLOG(netsurf, CRITICAL, "Unable to select: %s", strerror(errno));
|
||||
monkey_done = true;
|
||||
} else if (rdy_fd > 0) {
|
||||
if (FD_ISSET(0, &read_fd_set)) {
|
||||
|
Loading…
Reference in New Issue
Block a user