summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2009-12-04 14:12:37 +0000
committerkuriyama <kuriyama@FreeBSD.org>2009-12-04 14:12:37 +0000
commite3200f9d913b684b7d16cc84dcc6137ef14255ba (patch)
tree2a28532faedd04b252c21c15b5b0df650ab99bbb /usr.sbin/ypserv
parent05883b79c2ccc4816185117c259e379ade071c41 (diff)
downloadFreeBSD-src-e3200f9d913b684b7d16cc84dcc6137ef14255ba.zip
FreeBSD-src-e3200f9d913b684b7d16cc84dcc6137ef14255ba.tar.gz
- 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.
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r--usr.sbin/ypserv/yp_server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c
index 86c7d00..ba20c3cd 100644
--- a/usr.sbin/ypserv/yp_server.c
+++ b/usr.sbin/ypserv/yp_server.c
@@ -563,7 +563,10 @@ ypproc_all_2_svc(ypreq_nokey *argp, struct svc_req *rqstp)
* 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 *
OpenPOWER on IntegriCloud