projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faa29fa
)
* src/xterm.c (XTflash): Check return value of pselect.
author
Po Lu
<luangruo@yahoo.com>
Fri, 29 Apr 2022 00:43:27 +0000
(08:43 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Fri, 29 Apr 2022 00:43:27 +0000
(08:43 +0800)
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index d7746058326c44b4f514d2b7113f8ebf3be69e82..c4e0305a6e9b9f0b8cde9a994a3ef407748e0d60 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-8848,7
+8848,7
@@
XTflash (struct frame *f)
GC gc;
XGCValues values;
fd_set fds;
- int fd;
+ int fd
, rc
;
block_input ();
@@
-8921,10
+8921,10
@@
XTflash (struct frame *f)
FD_SET (fd, &fds);
/* Try to wait that long--but we might wake up sooner. */
- pselect (fd + 1, &fds, NULL, NULL, &timeout, NULL);
+
rc =
pselect (fd + 1, &fds, NULL, NULL, &timeout, NULL);
/* Some input is available, exit the visible bell. */
- if (FD_ISSET (fd, &fds))
+ if (
rc >= 0 &&
FD_ISSET (fd, &fds))
break;
}