Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sup/source return busy for checkchild instead of ki...



details:   https://anonhg.NetBSD.org/src/rev/7cad64ce2f7e
branches:  trunk
changeset: 785992:7cad64ce2f7e
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 09 16:38:18 2013 +0000

description:
return busy for checkchild instead of killing the connection

diffstat:

 usr.sbin/sup/source/supfilesrv.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 46faef3fa175 -r 7cad64ce2f7e usr.sbin/sup/source/supfilesrv.c
--- a/usr.sbin/sup/source/supfilesrv.c  Tue Apr 09 15:19:45 2013 +0000
+++ b/usr.sbin/sup/source/supfilesrv.c  Tue Apr 09 16:38:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: supfilesrv.c,v 1.49 2013/03/08 20:58:35 christos Exp $ */
+/*     $NetBSD: supfilesrv.c,v 1.50 2013/04/09 16:38:18 christos Exp $ */
 
 /*
  * Copyright (c) 1992 Carnegie Mellon University
@@ -496,7 +496,7 @@
                 * If we are being bombarded, don't even spend time forking
                 * or conversing
                 */
-               if (nchildren >= maxchildren || !checkchild()) {
+               if (nchildren > maxchildren) {
                        (void) servicekill();
                        continue;
                }
@@ -1011,7 +1011,7 @@
        if (x < 0)
                goaway("Can't stat base/prefix directory (%s)",
                    strerror(errno));
-       if (nchildren >= maxchildren) {
+       if (nchildren >= maxchildren || !checkchild()) {
                setupack = FSETUPBUSY;
                (void) msgsetupack();
                if (protver >= 6)



Home | Main Index | Thread Index | Old Index