Fix bug 5805: don't close stdout
commita937de4a626a8084e852bf7d345441bab15963cd
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Thu, 2 Oct 2008 13:17:49 +0000 (2 09:17 -0400)
committerKarolin Seeger <kseeger@samba.org>
Mon, 6 Oct 2008 11:03:11 +0000 (6 13:03 +0200)
treee3d0804969c2e45291ea0f251c2967cf7f9cb128
parenta2f298883f21c3e9afe686ee393410f2bcb28370
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 7142872d2c6e0be42307671afa31016f6940007d)
source/lib/debug.c