summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-04 22:52:48 +0000
committerRoy Marples <roy@marples.name>2008-03-04 22:52:48 +0000
commitc5d174af172c00dc8f5cf6988cca788067195e15 (patch)
treeabbb22fed0f559546046130d0ae8fd5620d425f9
parent8d66fe00564203a92dede4b0a7de46c29d66df11 (diff)
downloadopenrc-c5d174af172c00dc8f5cf6988cca788067195e15.tar.gz
openrc-c5d174af172c00dc8f5cf6988cca788067195e15.tar.bz2
openrc-c5d174af172c00dc8f5cf6988cca788067195e15.tar.xz
When stopping localmount, set LC_ALL=C so bash doesn't lock /usr.
-rw-r--r--src/rc/runscript.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index b0982f6..715c98b 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -962,6 +962,11 @@ static void svc_stop (bool deps)
services = NULL;
}
+ /* If we're stopping localmount, set LC_ALL=C so that
+ * bash doesn't load anything blocking the unmounting of /usr */
+ if (strcmp (applet, "localmount") == 0)
+ setenv ("LC_ALL", "C", 1);
+
if (ibsave)
setenv ("IN_BACKGROUND", ibsave, 1);
hook_out = RC_HOOK_SERVICE_STOP_DONE;