summaryrefslogtreecommitdiffstats
path: root/cryptfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'cryptfs.c')
-rw-r--r--cryptfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cryptfs.c b/cryptfs.c
index 87ab281..67533a4 100644
--- a/cryptfs.c
+++ b/cryptfs.c
@@ -688,6 +688,9 @@ int cryptfs_restart(void)
property_set("vold.decrypt", "trigger_reset_main");
SLOGD("Just asked init to shut down class main\n");
+ /* Give everything a chance to shutdown */
+ sleep(1);
+
/* Now that the framework is shutdown, we should be able to umount()
* the tmpfs filesystem, and mount the real one.
*/