Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 458795b

Browse files
author
Gao feng
committed
shutdown: kill processes before unmount
hmm, down the possibility that process writting block after unmount. Signed-off-by: Gao feng <[email protected]>
1 parent 9b73bbc commit 458795b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ void hyper_shutdown(struct hyper_pod *pod)
316316

317317
hyper_send_msg(ctl.chan.fd, FINISH, pod->c_num * 4, data);
318318

319-
hyper_unmount_all();
320319
hyper_kill_all();
320+
321+
hyper_unmount_all();
322+
321323
reboot(LINUX_REBOOT_CMD_POWER_OFF);
322324
}

0 commit comments

Comments
 (0)