mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-08-26 18:17:25 +00:00
Merge pull request #200 from laijs/container-exit
move hyper_kill_container_processes() up
This commit is contained in:
+2
-2
@@ -829,10 +829,10 @@ int hyper_handle_exec_exit(struct hyper_pod *pod, int pid, uint8_t code)
|
||||
close(exec->ptyfd);
|
||||
exec->ptyfd = -1;
|
||||
|
||||
hyper_release_exec(exec);
|
||||
|
||||
if (exec->init)
|
||||
hyper_kill_container_processes(container_of(exec, struct hyper_container, exec));
|
||||
|
||||
hyper_release_exec(exec);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user