yp_server.c (159461) | yp_server.c (200100) |
---|---|
1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33 34#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/usr.sbin/ypserv/yp_server.c 159461 2006-06-09 14:01:07Z maxim $"); | 35__FBSDID("$FreeBSD: head/usr.sbin/ypserv/yp_server.c 200100 2009-12-04 14:12:37Z kuriyama $"); |
36 37#include "yp.h" 38#include "yp_extern.h" 39#include <dirent.h> 40#include <errno.h> 41#include <stdlib.h> 42#include <sys/stat.h> 43#include <sys/param.h> --- 514 unchanged lines hidden (view full) --- 558 559 /* Kick off the actual data transfer. */ 560 svc_sendreply(rqstp->rq_xprt, (xdrproc_t)xdr_my_ypresp_all, &result); 561 562 /* 563 * Proper fix for PR #10970: exit here so that we don't risk 564 * having a child spawned from this sub-process. 565 */ | 36 37#include "yp.h" 38#include "yp_extern.h" 39#include <dirent.h> 40#include <errno.h> 41#include <stdlib.h> 42#include <sys/stat.h> 43#include <sys/param.h> --- 514 unchanged lines hidden (view full) --- 558 559 /* Kick off the actual data transfer. */ 560 svc_sendreply(rqstp->rq_xprt, (xdrproc_t)xdr_my_ypresp_all, &result); 561 562 /* 563 * Proper fix for PR #10970: exit here so that we don't risk 564 * having a child spawned from this sub-process. 565 */ |
566 _exit(0); | 566 if (!debug) 567 _exit(0); 568 569 return &result; |
567} 568 569ypresp_master * 570ypproc_master_2_svc(ypreq_nokey *argp, struct svc_req *rqstp) 571{ 572 static ypresp_master result; 573 static char ypvalbuf[YPMAXRECORD]; 574 keydat key = { MASTER_SZ, MASTER_STRING }; --- 408 unchanged lines hidden --- | 570} 571 572ypresp_master * 573ypproc_master_2_svc(ypreq_nokey *argp, struct svc_req *rqstp) 574{ 575 static ypresp_master result; 576 static char ypvalbuf[YPMAXRECORD]; 577 keydat key = { MASTER_SZ, MASTER_STRING }; --- 408 unchanged lines hidden --- |