[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: chdir() in libraries/liblutil/detach.c (ITS#421)
On Fri, Jan 14, 2000 at 10:22:30PM +0000, wes@umich.edu wrote:
> Full_Name: Wesley Craig
> Version: 1.2.8
> OS: Solaris 2.6
> URL:
> Submission from: (NULL) (141.211.164.29)
>
>
> The call to chdir( "/" ) in libraries/liblutil/detach.c makes it impossible
> for a large database to dump core, without having an impressively large
> root file system. If it is desirable to have slapd et al change directories
> at all, the target directory should be configurable. I would be happy to have
> this call simply removed.
>
> :wes
It chdir's to "/" to ensure that it does not keep filesystems busy. This
is expected behavior of any daemon. I would suggest that if it is running
in debug mode, it should not do this, since that allows it to dump core in
the cwd of the invoker.
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bmc@visi.net '
`---=========------=======-------------=-=-----=-===-======-------=--=---'