When stopping localmount, set LC_ALL=C so bash doesn't lock /usr.

This commit is contained in:
Roy Marples 2008-03-04 22:52:48 +00:00
parent 8d66fe0056
commit c5d174af17

View File

@ -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;