summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-12-05 04:28:03 +0000
committerimp <imp@FreeBSD.org>2003-12-05 04:28:03 +0000
commitf1d2a9b826afcf5daed2b33dac4a8f5bcb2c3b14 (patch)
tree53b5e037b86ea2542b508fb823d42c8cc4de2ff1 /sbin
parentb31063e7fd2b85ed623157af29c05bd6825114d5 (diff)
downloadFreeBSD-src-f1d2a9b826afcf5daed2b33dac4a8f5bcb2c3b14.zip
FreeBSD-src-f1d2a9b826afcf5daed2b33dac4a8f5bcb2c3b14.tar.gz
Fix the case where one goes from zero to more than zero items enabled
in /etc/ttys. Before this fix, once the count of active services reaches 0, one could never restart any more without a reboot. Steve Passe did the leg work on this patch. After he found the fix, we discovered that an identical fix had been made to NetBSD. Approved by: re@ <scottl> Approval tool: peril sensitive sunglasses
Diffstat (limited to 'sbin')
-rw-r--r--sbin/init/init.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 2ad5d95..ccff3c7 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -1279,9 +1279,6 @@ clean_ttys(void)
int devlen;
char *old_getty, *old_window, *old_type;
- if (! sessions)
- return (state_func_t) multi_user;
-
/*
* mark all sessions for death, (!SE_PRESENT)
* as we find or create new ones they'll be marked as keepers,
OpenPOWER on IntegriCloud