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

@ -1,6 +1,8 @@
sysvinit (2.89) UNRELEASED; urgency=low
[ Jesse Smith ]
* Removed two sleep calls when we are doing sync anyway to make sure
data is being written. Speeds up reboot time by about two seconds.
* Fixed Clang compiler warning regarding variable data parameters to sprintf().
* Updated top-level Makefile to work with git repo instead of old svn repo.
* Removed unused variables and findtty() function in bootlogd

View File

@ -266,7 +266,11 @@ int main(int argc, char **argv)
if (do_sync) {
sync();
/* 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, "~~");