Fix bug 5805: don't close stdout
commit475c9a7ff5a96f7d1392610066fdd1ae28b7e039
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Thu, 2 Oct 2008 17:40:08 +0000 (2 10:40 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 2 Oct 2008 17:40:08 +0000 (2 10:40 -0700)
tree039b32f0a306c61daf5b6b7d0471c6ba27b8ad7f
parent21d8210724dea1ceb94081cfebef73639d6f3741
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
source/lib/debug.c