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
dc273a2f07
commit
c167b71a1b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46207
@ -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…
Reference in New Issue
Block a user