Fix bug 5805: don't close stdout
commit50e546171c08a5a8e3608983d45ec02ec208b8d1
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Thu, 2 Oct 2008 17:40:08 +0000 (2 10:40 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Oct 2008 16:01:52 +0000 (15 18:01 +0200)
tree610428432f7bd234d503ceee4dc4852dc2f71694
parentb45df44757f70d222e7b663690814c877ee6189e
Fix bug 5805: don't close stdout

- When calling setup_logging multiple times, the code was closing the debug
file descriptor before opening or assigning the new one.  We don't, however,
want to close the debug file descriptor if it is stdout.

Derrell
(cherry picked from commit 475c9a7ff5a96f7d1392610066fdd1ae28b7e039)
source/lib/debug.c