Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ruby/ext/grpc/rb_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ void grpc_rb_channel_polling_thread_start() {
&stop_waiting_for_thread_start,
wait_until_channel_polling_thread_started_unblocking_func,
&stop_waiting_for_thread_start);
}
}

void grpc_rb_channel_polling_thread_stop() {
if (!RTEST(g_channel_polling_thread)) {
Expand Down
6 changes: 4 additions & 2 deletions src/ruby/ext/grpc/rb_grpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include <math.h>
#include <ruby/vm.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>

#include "rb_call.h"
#include "rb_call_credentials.h"
Expand Down Expand Up @@ -432,7 +432,9 @@ static VALUE grpc_rb_postfork_parent(VALUE self) {
"GRPC::prefork");
}
if (!grpc_ruby_initial_thread()) {
fprintf(stderr, "grpc_rb_postfork_parent g_init_tid = %ld, current_tid=%ld\n", g_init_tid, sys_gettid());
fprintf(stderr,
"grpc_rb_postfork_parent g_init_tid = %ld, current_tid=%ld\n",
g_init_tid, sys_gettid());
rb_raise(rb_eRuntimeError,
"GRPC.postfork_parent needs to be called from the same thread "
"that GRPC.prefork (and fork) was called from");
Expand Down