View | Details | Raw Unified | Return to bug 28116
Collapse All | Expand All

(-)/usr/src/sbin/init/init.c (+3 lines)
Lines 798-807 Link Here
798
	/*
798
	/*
799
	 * Copied from single_user().  This is a bit paranoid.
799
	 * Copied from single_user().  This is a bit paranoid.
800
	 */
800
	 */
801
	requested_transition = 0;
801
	do {
802
	do {
802
		if ((wpid = waitpid(-1, &status, WUNTRACED)) != -1)
803
		if ((wpid = waitpid(-1, &status, WUNTRACED)) != -1)
803
			collect_child(wpid);
804
			collect_child(wpid);
804
		if (wpid == -1) {
805
		if (wpid == -1) {
806
			if (requested_transition == death)
807
				return death;
805
			if (errno == EINTR)
808
			if (errno == EINTR)
806
				continue;
809
				continue;
807
			warning("wait for %s on %s failed: %m; going to single user mode",
810
			warning("wait for %s on %s failed: %m; going to single user mode",

Return to bug 28116