# HG changeset patch # User Richard M. Stallman # Date 756889688 0 # Node ID b36dfc938ba4c21cf65f512b5bca26f21f39ab61 # Parent 70983b24cc69aec77354d59bc7811d527bbdfb0d (XTread_socket): Make proper junk values to pass to select. diff -r 70983b24cc69 -r b36dfc938ba4 src/xterm.c --- a/src/xterm.c Sun Dec 26 06:04:51 1993 +0000 +++ b/src/xterm.c Sun Dec 26 07:08:08 1993 +0000 @@ -3448,13 +3448,15 @@ there is an EOF condition; in other words, that X has died. Act as if there had been a hangup. */ int fd = ConnectionNumber (x_current_display); - SELECT_TYPE mask; + SELECT_TYPE mask, junk1, junk2; EMACS_TIME timeout; FD_ZERO (&mask); FD_SET (fd, &mask); EMACS_SET_SECS_USECS (timeout, 0, 0); - if (0 != select (fd + 1, &mask, (long *) 0, (long *) 0, &timeout) + FD_ZERO (&junk1); + FD_ZERO (&junk2); + if (0 != select (fd + 1, &mask, &junk1, &junk2, &timeout) && !XStuffPending ()) kill (getpid (), SIGHUP); }