diff --git a/init/service.cpp b/init/service.cpp index 077477a15..95a532850 100644 --- a/init/service.cpp +++ b/init/service.cpp @@ -288,6 +288,10 @@ void Service::Reap(const siginfo_t& siginfo) { if (flags_ & SVC_EXEC) UnSetExec(); + if (name_ == "zygote" || name_ == "zygote64") { + removeAllEmptyProcessGroups(); + } + if (flags_ & SVC_TEMPORARY) return; pid_ = 0;