Removed extra sleep() calls from shutting down process since we use

sync() anyway to pause and make sure data is written out to disk.
This commit is contained in:
Jesse Smith
2018-02-22 21:07:51 -04:00
parent 2b651b469e
commit 2e1f87635e
3 changed files with 9 additions and 2 deletions

View File

@@ -266,7 +266,11 @@ int main(int argc, char **argv)
if (do_sync) {
sync();
sleep(2);
/* Sync should be fine on its own for making sure data is written.
We probably call shutdown after this anyway to clean up.
-- Jesse
sleep(2);
*/
}
if (do_ifdown)

View File

@@ -359,7 +359,8 @@ void fastdown()
#endif
/* script failed or not present: do it ourself. */
sleep(1); /* Give init the chance to collect zombies. */
/* Give init the chance to collect zombies. */
/* sleep(1); */
/* Record the fact that we're going down */
write_wtmp("shutdown", "~~", 0, RUN_LVL, "~~");