[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: chdir() in libraries/liblutil/detach.c (ITS#421)

> From:    Ben Collins <bcollins@debian.org>
> To:      wes@umich.edu

> 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.

I understand the filesystem issue.  I'd be happy to have this an option
in slapd.conf, with the default being "/".  Many daemons do something
like this, particularly to protect core files.  The server we're
running never dies in test, only in production, so running in debug
mode is not entirely practical.