aboutsummaryrefslogtreecommitdiffstats
path: root/prototypes/connections/test-async.c
diff options
context:
space:
mode:
Diffstat (limited to 'prototypes/connections/test-async.c')
-rw-r--r--prototypes/connections/test-async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prototypes/connections/test-async.c b/prototypes/connections/test-async.c
index ad5f15a..e31b1d7 100644
--- a/prototypes/connections/test-async.c
+++ b/prototypes/connections/test-async.c
@@ -38,7 +38,7 @@ static void *write_after_signal(void *context) {
worker->effect.value, &worker->reply,
&worker->revision);
}
- (void)write(worker->done, &byte, 1);
+ if (write(worker->done, &byte, 1) < 0) { /* full: its reader is woken already */ }
return NULL;
}