summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
diff options
context:
space:
mode:
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