summaryrefslogtreecommitdiff
path: root/frontends/monkey
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-02 16:57:38 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-02 16:57:38 +0100
commitf7d97d64836a042effd52a894ed8b1abeff46960 (patch)
treeeb2eeec6c01a6e514763a3d92106767e51ec19ea /frontends/monkey
parent6a9137f4319951b370b5b94e5d3049d6430e031d (diff)
downloadnetsurf-f7d97d64836a042effd52a894ed8b1abeff46960.tar.gz
netsurf-f7d97d64836a042effd52a894ed8b1abeff46960.tar.bz2
monkey: Report the errno when select() returns -1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'frontends/monkey')
-rw-r--r--frontends/monkey/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/monkey/main.c b/frontends/monkey/main.c
index 9e05d3517..1e496cb0f 100644
--- a/frontends/monkey/main.c
+++ b/frontends/monkey/main.c
@@ -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)) {