aboutsummaryrefslogtreecommitdiffstats
path: root/prototypes/connections/edit-tui.c
diff options
context:
space:
mode:
Diffstat (limited to 'prototypes/connections/edit-tui.c')
-rw-r--r--prototypes/connections/edit-tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prototypes/connections/edit-tui.c b/prototypes/connections/edit-tui.c
index d7b1442..2b320ee 100644
--- a/prototypes/connections/edit-tui.c
+++ b/prototypes/connections/edit-tui.c
@@ -55,7 +55,7 @@ static void wake_signal(int signal_number) {
else stopping = 1;
if (wake_write >= 0) {
const char byte = 1;
- (void)write((int)wake_write, &byte, 1);
+ if (write((int)wake_write, &byte, 1) < 0) { /* full: its reader is woken already */ }
}
errno = saved_errno;
}