From 35fc132143957271ecaaf66b16ab8b289a8318cf Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 5 Dec 2003 04:28:03 +0000 Subject: [PATCH] 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@ Approval tool: peril sensitive sunglasses --- sbin/init/init.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sbin/init/init.c b/sbin/init/init.c index 2ad5d958f226..ccff3c7f0446 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,