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:
Gao feng
2015-06-13 16:14:55 +08:00
parent 9b73bbc9b2
commit 458795b4b2
+3 -1
View File
@@ -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);
}