From d8fda3b8463c19067cf2247dd1c6aabd2bebef62 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sun, 27 Sep 2020 14:27:29 -0700 Subject: [PATCH] Update error messages when fcntl/ioctl on X fd for SETSIG fails to make it a little clearer. modified: src/timer.c --- src/timer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/timer.c b/src/timer.c index 3f33927..20fb56e 100644 --- a/src/timer.c +++ b/src/timer.c @@ -691,11 +691,13 @@ static void int_io_init() { #ifdef XWINDOW #ifdef LINUX if (fcntl(ConnectionNumber(currentdsp->display_id), F_SETSIG, 0) < 0) + perror("fcntl on X fd - SETSIG for input handling failed"); #else if (ioctl(ConnectionNumber(currentdsp->display_id), I_SETSIG, S_INPUT) < 0) + perror("ioctl on X fd - SETSIG for input handling failed"); #endif - perror("ioctl on X fd - SETSIG"); #endif /* XWINDOW */ + #ifdef USE_DLPI DBPRINT(("INIT ETHER: Doing I_SETSIG.\n")); if (ether_fd > 0)