Comment 38 for bug 806761

Revision history for this message
Arthur de Jong (adejong) wrote :

It is not recommended to run nslcd in debug mode in production.

Anyway, on start-up nslcd will call daemon() to daemonise. I thought that daemon() called fork() twice but according to the manual page it only forks once. After that, it starts a number of threads (configured by the threads option in nslcd.conf) and optionally starts another sub-process to do cache invalidation. This last process is only started in 0.9.0 and later if configured and is started before dropping privileges so runs as root (while other processes commonly run as user nslcd).