From owner-cvs-all Thu Apr 29 13:24: 4 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 702D314E6F; Thu, 29 Apr 1999 13:24:02 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA20790; Thu, 29 Apr 1999 13:24:02 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Message-Id: <199904292024.NAA20790@freefall.freebsd.org> From: Bill Paul Date: Thu, 29 Apr 1999 13:24:02 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/ypserv yp_extern.h yp_main.c yp_server.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk wpaul 1999/04/29 13:24:02 PDT Modified files: usr.sbin/ypserv yp_extern.h yp_main.c yp_server.c Log: Add some extra checks to make sure that a child ypserv process doesn't try to fork() a child of its own, which could result in several children ypservs running at once. I'm still not sure exactly what leads to this condition, but these fixes should stop it from causing trouble. A new function, yp_fork() checks to see if the current process is already a child of the parent ypserv, and returns failure (and logs an error message) rather than spawning another child. Revision Changes Path 1.13 +3 -1 src/usr.sbin/ypserv/yp_extern.h 1.20 +13 -9 src/usr.sbin/ypserv/yp_main.c 1.28 +14 -8 src/usr.sbin/ypserv/yp_server.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message