Module: Raptor::Subreaper

Defined in:
ext/raptor_native/raptor_native.c

Class Method Summary collapse

Class Method Details

.enableObject



86
87
88
89
90
91
92
93
94
# File 'ext/raptor_native/raptor_native.c', line 86

static VALUE raptor_native_enable_subreaper(VALUE self) {
  (void)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
}