Module: Raptor::Subreaper
- Defined in:
- ext/raptor_native/raptor_native.c
Class Method Summary collapse
Class Method Details
.enable ⇒ Object
104 105 106 107 108 109 110 111 |
# File 'ext/raptor_native/raptor_native.c', line 104
static VALUE subreaper_enable(VALUE self) {
#if defined(__linux__) && defined(PR_SET_CHILD_SUBREAPER)
if (prctl(PR_SET_CHILD_SUBREAPER, 1, 0, 0, 0) < 0) rb_sys_fail("prctl");
return Qtrue;
#else
return Qfalse;
#endif
}
|