summaryrefslogtreecommitdiffstats
path: root/unix/tclSelectNotfy.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-24 17:44:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-24 17:44:02 (GMT)
commit9faff5cc94c4badba3c7b268d6ee6b4d56bacf33 (patch)
treeb4484bd3d450bf9a09b3039aaf1a2e1886cf4637 /unix/tclSelectNotfy.c
parent3795a0f7dc8e3f2f187e396b0e0dbaa284ee218c (diff)
parenta4ac44fccc008eb38b43511905b3797f9b0274df (diff)
downloadtcl-9faff5cc94c4badba3c7b268d6ee6b4d56bacf33.zip
tcl-9faff5cc94c4badba3c7b268d6ee6b4d56bacf33.tar.gz
tcl-9faff5cc94c4badba3c7b268d6ee6b4d56bacf33.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclSelectNotfy.c')
-rw-r--r--unix/tclSelectNotfy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tclSelectNotfy.c b/unix/tclSelectNotfy.c
index 862a0e3..7d14c26 100644
--- a/unix/tclSelectNotfy.c
+++ b/unix/tclSelectNotfy.c
@@ -938,7 +938,10 @@ TclAsyncNotifier(
*flagPtr = value;
if (!asyncPending) {
asyncPending = 1;
- write(triggerPipe, "S", 1);
+ if (write(triggerPipe, "S", 1) != 1) {
+ asyncPending = 0;
+ return 0;
+ };
}
return 1;
}