]> mj.ucw.cz Git - libucw.git/commit
Logging: Log file established log_file() is always dup'ed as stderr.
authorMartin Mares <mj@ucw.cz>
Sat, 14 Feb 2009 09:23:19 +0000 (10:23 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 14 Feb 2009 09:23:19 +0000 (10:23 +0100)
commit57c188c449ae0ac47e8826f947c76eb1f4d26eaf
treea6ab401546da85a328d3a9f90bfc79989353837a
parent5caf33ebad2737a016171492525aca58cccf77c1
Logging: Log file established log_file() is always dup'ed as stderr.

Previously, stderr was set only at the first open and we forgot to re-dup
it after switching log files.

I have also removed the logic in do_log_reopen() which tried to keep the fd
of the log file stable. Except for having stderr follow the log file, this
was of no use.
ucw/log-file.c