Skip to content

Commit 925fe6b

Browse files
committed
Debug um_accept_each
1 parent f0d77f9 commit 925fe6b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: ext/um/um.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,12 @@ VALUE um_accept_each_safe_loop(VALUE arg) {
529529
__u32 flags = 0;
530530

531531
while (1) {
532-
um_await_op(ctx->machine, ctx->op, NULL, NULL);
533-
534-
if (!ctx->op->results_head)
532+
um_await_op(ctx->machine, ctx->op, &result, &flags);
533+
if (!ctx->op->results_head) {
534+
printf("accept_each_safe_loop - no results queued, result: %d flags: %d\n", result, flags);
535535
// this shouldn't happen!
536536
rb_raise(rb_eRuntimeError, "no result found for accept_each loop");
537+
}
537538

538539
while (um_op_result_shift(ctx->machine, ctx->op, &result, &flags)) {
539540
um_raise_on_system_error(result);

0 commit comments

Comments
 (0)