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 *
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to