diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-02-21 01:30:56 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-02-21 01:30:56 +0100 |
commit | 6f4f02cf9f8d0b1a8dfa15e3f903b19a02ac9fdf (patch) | |
tree | 449306a54a4014f922277c2a16b3f92333df0840 /src | |
parent | b5b62720c5ce22c7d479a76546858ec90dd213b2 (diff) |
Slightly better workaround given the circumstances.
Diffstat (limited to 'src')
-rw-r--r-- | src/ruby/ext/grpc/rb_grpc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ruby/ext/grpc/rb_grpc.c b/src/ruby/ext/grpc/rb_grpc.c index 1f887d69b5..7344e1467c 100644 --- a/src/ruby/ext/grpc/rb_grpc.c +++ b/src/ruby/ext/grpc/rb_grpc.c @@ -269,8 +269,7 @@ static void Init_grpc_time_consts() { id_tv_nsec = rb_intern("tv_nsec"); } -static void grpc_rb_shutdown(VALUE val) { - (void)val; +static void grpc_rb_shutdown(void) { grpc_shutdown(); } @@ -298,7 +297,7 @@ void Init_grpc_c() { grpc_init(); - rb_set_end_proc(grpc_rb_shutdown, Qnil); + atexit(grpc_rb_shutdown); grpc_rb_mGRPC = rb_define_module("GRPC"); grpc_rb_mGrpcCore = rb_define_module_under(grpc_rb_mGRPC, "Core"); |