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:
parent
2b651b469e
commit
2e1f87635e
@ -1,6 +1,8 @@
|
|||||||
sysvinit (2.89) UNRELEASED; urgency=low
|
sysvinit (2.89) UNRELEASED; urgency=low
|
||||||
|
|
||||||
[ Jesse Smith ]
|
[ 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().
|
* Fixed Clang compiler warning regarding variable data parameters to sprintf().
|
||||||
* Updated top-level Makefile to work with git repo instead of old svn repo.
|
* Updated top-level Makefile to work with git repo instead of old svn repo.
|
||||||
* Removed unused variables and findtty() function in bootlogd
|
* Removed unused variables and findtty() function in bootlogd
|
||||||
|
@ -266,7 +266,11 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
if (do_sync) {
|
if (do_sync) {
|
||||||
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)
|
if (do_ifdown)
|
||||||
|
@ -359,7 +359,8 @@ void fastdown()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* script failed or not present: do it ourself. */
|
/* 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 */
|
/* Record the fact that we're going down */
|
||||||
write_wtmp("shutdown", "~~", 0, RUN_LVL, "~~");
|
write_wtmp("shutdown", "~~", 0, RUN_LVL, "~~");
|
||||||
|
Loading…
Reference in New Issue
Block a user