about summary refs log tree commit diff
path: root/nscd/nscd.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-02-17 05:16:49 +0000
committerUlrich Drepper <drepper@redhat.com>2004-02-17 05:16:49 +0000
commitf40473668438eaba88eced8d4e78db1225e90542 (patch)
treec8a55e212d39c880faba7fd1295ad9b4fdb0d6c3 /nscd/nscd.c
parentf04b9a68febb179fc90095ae4f9fb2b7ec68a901 (diff)
downloadglibc-f40473668438eaba88eced8d4e78db1225e90542.tar.gz
glibc-f40473668438eaba88eced8d4e78db1225e90542.tar.xz
glibc-f40473668438eaba88eced8d4e78db1225e90542.zip
[BZ #18]
Update.
	* nscd/nscd_conf.c (nscd_parse_file): Little optimization.

2004-02-14  Thorsten Kukuk  <kukuk@suse.de>

	* nscd/dbg_log.c (set_logfile): Only save name of logfile,
	don't open it.
	(init_logfile): New function, open logfile if requested.
	* nscd/dbg_log.h: Adjust protoype for set_logfile, add init_logfile.
	* nscd/nscd.c (main): Call init_logfile after forking in background.
	* nscd/nscd_conf.c (nscd_parse_file): Adjust for new set_logfile.

2004-02-16  Ulrich Drepper  <drepper@redhat.com>

	ld.so.preload is not present [BZ #18].
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r--nscd/nscd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c
index d01f9355ae..50d3cfcf5f 100644
--- a/nscd/nscd.c
+++ b/nscd/nscd.c
@@ -223,6 +223,9 @@ main (int argc, char **argv)
       if (write_pid (_PATH_NSCDPID) < 0)
         dbg_log ("%s: %s", _PATH_NSCDPID, strerror (errno));
 
+      if (!init_logfile ())
+	dbg_log (_("Could not create log file"));
+
       /* Ignore job control signals.  */
       signal (SIGTTOU, SIG_IGN);
       signal (SIGTTIN, SIG_IGN);