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:
@@ -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)
|
||||
|
@@ -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, "~~");
|
||||
|
Reference in New Issue
Block a user