Merge "Don't kill subcontext if it's null"
This commit is contained in:
commit
932e069f0f
1 changed files with 3 additions and 0 deletions
|
|
@ -381,6 +381,9 @@ bool SubcontextChildReap(pid_t pid) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SubcontextTerminate() {
|
void SubcontextTerminate() {
|
||||||
|
if (!subcontext) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
subcontext_terminated_by_shutdown = true;
|
subcontext_terminated_by_shutdown = true;
|
||||||
kill(subcontext->pid(), SIGTERM);
|
kill(subcontext->pid(), SIGTERM);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue