Merge branch 'speedup'

This commit is contained in:
Jesse Smith 2018-03-27 20:33:34 -03:00
commit 4f7a210940
4 changed files with 13 additions and 6 deletions

View File

@ -3,7 +3,7 @@ all install clean distclean:
PACKAGE=sysvinit PACKAGE=sysvinit
VERSION=$(shell sed -rn '1s/.*[[:blank:]]\((.*)\)[[:blank:]].*/\1/p' doc/Changelog) VERSION=$(shell sed -rn '1s/.*[[:blank:]]\((.*)\)[[:blank:]].*/\1/p' doc/Changelog)
SVLOGIN=$(shell svn info | sed -rn '/Repository Root:/{ s|.*//(.*)\@.*|\1|p }') GITLOGIN=$(shell git remote -v | head -n 1 | cut -f 3 -d '/' | cut -f 1 -d '@')
override TMP:=$(shell mktemp -d $(VERSION).XXXXXXXX) override TMP:=$(shell mktemp -d $(VERSION).XXXXXXXX)
override TARBALL:=$(TMP)/$(PACKAGE)-$(VERSION).tar.bz2 override TARBALL:=$(TMP)/$(PACKAGE)-$(VERSION).tar.bz2
override SFTPBATCH:=$(TMP)/$(VERSION)-sftpbatch override SFTPBATCH:=$(TMP)/$(VERSION)-sftpbatch
@ -15,7 +15,7 @@ dist: $(TARBALL)
rm -rf $(TMP) rm -rf $(TMP)
upload: $(SFTPBATCH) upload: $(SFTPBATCH)
echo @sftp -b $< $(SVLOGIN)@dl.sv.nongnu.org:/releases/$(PACKAGE) echo @sftp -b $< $(GITLOGIN)@dl.sv.nongnu.org:/releases/$(PACKAGE)
rm -rf $(TMP) rm -rf $(TMP)
$(SFTPBATCH): $(TARBALL).sig $(SFTPBATCH): $(TARBALL).sig

View File

@ -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
@ -44,7 +46,7 @@ sysvinit (2.89) UNRELEASED; urgency=low
We will use /etc/nologin and let distros patch to suit their own preference. We will use /etc/nologin and let distros patch to suit their own preference.
* Updated halt.8 man page with corrections from * Updated halt.8 man page with corrections from
Christoph Anton Mitterer. Christoph Anton Mitterer.
* Confirme we have applied patch from Bjarni Ingi Gislason * Confirmed we have applied patch from Bjarni Ingi Gislason
which fixes typo in fstab-decode man page. which fixes typo in fstab-decode man page.
* Applied Debian patch to allow init to build on GNU Hurd. * Applied Debian patch to allow init to build on GNU Hurd.
(Credit: Roger Leigh) (Credit: Roger Leigh)

View File

@ -266,7 +266,11 @@ int main(int argc, char **argv)
if (do_sync) { if (do_sync) {
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); sleep(2);
*/
} }
if (do_ifdown) if (do_ifdown)

View File

@ -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, "~~");