25 lines
694 B
Diff
25 lines
694 B
Diff
|
From 8f7b97ac2f78d300ae85f7c2355fca43087e459e Mon Sep 17 00:00:00 2001
|
||
|
Date: Tue, 27 Nov 2018 09:29:45 -0500
|
||
|
Subject: [PATCH] 102644: force umount to avoid a dead hang
|
||
|
|
||
|
---
|
||
|
src/shutdown.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/shutdown.c b/src/shutdown.c
|
||
|
index 7e997da..d3b40f9 100644
|
||
|
--- a/src/shutdown.c
|
||
|
+++ b/src/shutdown.c
|
||
|
@@ -381,7 +381,7 @@ void fastdown()
|
||
|
fprintf(stderr, "shutdown: turning off swap\r\n");
|
||
|
spawn(0, "swapoff", "-a", NULL);
|
||
|
fprintf(stderr, "shutdown: unmounting all file systems\r\n");
|
||
|
- spawn(0, "umount", "-a", NULL);
|
||
|
+ spawn(0, "umount", "-a", "-f", NULL);
|
||
|
|
||
|
/* We're done, halt or reboot now. */
|
||
|
if (do_halt) {
|
||
|
--
|
||
|
2.16.4
|
||
|
|