From 458795b4b2eb5580b13e72f1b1140079b093053b Mon Sep 17 00:00:00 2001 From: Gao feng Date: Sat, 13 Jun 2015 13:53:06 +0800 Subject: [PATCH] shutdown: kill processes before unmount hmm, down the possibility that process writting block after unmount. Signed-off-by: Gao feng --- src/util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 7367d67..48aa8cc 100644 --- a/src/util.c +++ b/src/util.c @@ -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); }