mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-10-03 23:48:25 +00:00
shutdown: kill processes before unmount
hmm, down the possibility that process writting block after unmount. Signed-off-by: Gao feng <feng@hyper.sh>
This commit is contained in:
+3
-1
@@ -316,7 +316,9 @@ void hyper_shutdown(struct hyper_pod *pod)
|
||||
|
||||
hyper_send_msg(ctl.chan.fd, FINISH, pod->c_num * 4, data);
|
||||
|
||||
hyper_unmount_all();
|
||||
hyper_kill_all();
|
||||
|
||||
hyper_unmount_all();
|
||||
|
||||
reboot(LINUX_REBOOT_CMD_POWER_OFF);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user