From owner-svn-src-head@FreeBSD.ORG Fri Dec 4 14:12:38 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C3EE1065672; Fri, 4 Dec 2009 14:12:38 +0000 (UTC) (envelope-from kuriyama@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3BA0C8FC16; Fri, 4 Dec 2009 14:12:38 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nB4ECcUN056960; Fri, 4 Dec 2009 14:12:38 GMT (envelope-from kuriyama@svn.freebsd.org) Received: (from kuriyama@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nB4ECckR056958; Fri, 4 Dec 2009 14:12:38 GMT (envelope-from kuriyama@svn.freebsd.org) Message-Id: <200912041412.nB4ECckR056958@svn.freebsd.org> From: Jun Kuriyama Date: Fri, 4 Dec 2009 14:12:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200100 - head/usr.sbin/ypserv X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2009 14:12:38 -0000 Author: kuriyama Date: Fri Dec 4 14:12:37 2009 New Revision: 200100 URL: http://svn.freebsd.org/changeset/base/200100 Log: - In ypproc_all_2_svc(), yp_fork() is called only when !debug case. So _exit() in the bottom of this function should be called with the same case. Modified: head/usr.sbin/ypserv/yp_server.c Modified: head/usr.sbin/ypserv/yp_server.c ============================================================================== --- head/usr.sbin/ypserv/yp_server.c Fri Dec 4 14:08:57 2009 (r200099) +++ head/usr.sbin/ypserv/yp_server.c Fri Dec 4 14:12:37 2009 (r200100) @@ -563,7 +563,10 @@ ypproc_all_2_svc(ypreq_nokey *argp, stru * Proper fix for PR #10970: exit here so that we don't risk * having a child spawned from this sub-process. */ - _exit(0); + if (!debug) + _exit(0); + + return &result; } ypresp_master *