diff options
| author | griffin <briang42@easystreet.net> | 2022-11-24 20:31:05 (GMT) |
|---|---|---|
| committer | griffin <briang42@easystreet.net> | 2022-11-24 20:31:05 (GMT) |
| commit | 85ff1f33c9898a17fabb8ab90a6f4e823f693154 (patch) | |
| tree | a21e404e2c245540590ce318308279e2d5585d0c /unix/tclSelectNotfy.c | |
| parent | a4e76a1c02f39e24cbf6ee4543ce76e34727cecd (diff) | |
| parent | 9faff5cc94c4badba3c7b268d6ee6b4d56bacf33 (diff) | |
| download | tcl-85ff1f33c9898a17fabb8ab90a6f4e823f693154.zip tcl-85ff1f33c9898a17fabb8ab90a6f4e823f693154.tar.gz tcl-85ff1f33c9898a17fabb8ab90a6f4e823f693154.tar.bz2 | |
Sync with trunk
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; } |
