Merge "Don't kill subcontext if it's null"

This commit is contained in:
Treehugger Robot 2022-07-11 06:47:19 +00:00 committed by Gerrit Code Review
commit 932e069f0f

View file

@ -381,6 +381,9 @@ bool SubcontextChildReap(pid_t pid) {
}
void SubcontextTerminate() {
if (!subcontext) {
return;
}
subcontext_terminated_by_shutdown = true;
kill(subcontext->pid(), SIGTERM);
}