summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>2009-01-27 15:37:42 +0000
committerTor Lillqvist <tml@src.gnome.org>2009-01-27 15:37:42 +0000
commit6fde76c2f69d8284cf4ab45cfaf4de61d7a749b7 (patch)
tree83b72f79c28fd90343a899d10fa82e705c45cc49
parent4bde8bf09e5a2324c4f4ca75f006e3335c6515fe (diff)
downloadgconf-6fde76c2f69d8284cf4ab45cfaf4de61d7a749b7.tar.gz
Nah, don't try duping fileno(stdout) to fileno(stderr), won't work if fileno(stderr) is -1.
svn path=/branches/gnome-2-22/; revision=2745
-rw-r--r--gconf/gconfd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gconf/gconfd.c b/gconf/gconfd.c
index 54d144b4..e69ca3e8 100644
--- a/gconf/gconfd.c
+++ b/gconf/gconfd.c
@@ -625,11 +625,7 @@ main(int argc, char** argv)
if (fileno (stdout) != -1 &&
_get_osfhandle (fileno (stdout)) != -1)
{
- /* stdout is fine, presumably redirected to a file or pipe.
- * Make sure stdout goes somewhere, too.
- */
- if (_get_osfhandle (fileno (stderr)) == -1)
- dup2 (fileno (stdout), fileno (stderr));
+ /* stdout is fine, presumably redirected to a file or pipe */
}
else
{