diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/-test-/gvl/call_without_gvl/call_without_gvl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/-test-/gvl/call_without_gvl/call_without_gvl.c b/ext/-test-/gvl/call_without_gvl/call_without_gvl.c index 654c979479..4b0aafdad1 100644 --- a/ext/-test-/gvl/call_without_gvl/call_without_gvl.c +++ b/ext/-test-/gvl/call_without_gvl/call_without_gvl.c @@ -38,7 +38,8 @@ do_loop(void *p) struct loop_ctl *ctl = p; /* tell the waiting process they can interrupt us, now */ - write(ctl->notify_fd, "", 1); + int err = write(ctl->notify_fd, "", 1); + if (err == -1) rb_bug("write error"); while (!ctl->stop) { struct timeval tv = { 0, 10000 }; |