Close PR #10971: flush the database cache after forking in ypproc_all_2_svc()
so that parent and child don't share DB handles.
This commit is contained in:
parent
981525b537
commit
cb9c9b65b7
@ -537,6 +537,14 @@ ypproc_all_2_svc(ypreq_nokey *argp, struct svc_req *rqstp)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Fix for PR #10971: don't let the child ypserv share
|
||||
* DB handles with the parent process.
|
||||
*/
|
||||
#ifdef DB_CACHE
|
||||
yp_flush_all();
|
||||
#endif
|
||||
|
||||
if (yp_select_map(argp->map, argp->domain,
|
||||
&result.ypresp_all_u.val.key, 0) != YP_TRUE) {
|
||||
result.ypresp_all_u.val.stat = yp_errno;
|
||||
|
Loading…
x
Reference in New Issue
Block a user