diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-24 17:44:02 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-24 17:44:02 (GMT) |
| commit | 9faff5cc94c4badba3c7b268d6ee6b4d56bacf33 (patch) | |
| tree | b4484bd3d450bf9a09b3039aaf1a2e1886cf4637 /unix/tclSelectNotfy.c | |
| parent | 3795a0f7dc8e3f2f187e396b0e0dbaa284ee218c (diff) | |
| parent | a4ac44fccc008eb38b43511905b3797f9b0274df (diff) | |
| download | tcl-9faff5cc94c4badba3c7b268d6ee6b4d56bacf33.zip tcl-9faff5cc94c4badba3c7b268d6ee6b4d56bacf33.tar.gz tcl-9faff5cc94c4badba3c7b268d6ee6b4d56bacf33.tar.bz2 | |
Merge 8.7
Diffstat (limited to 'unix/tclSelectNotfy.c')
| -rw-r--r-- | unix/tclSelectNotfy.c | 5 |
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; } |
