diff options
author | Tor Lillqvist <tml@src.gnome.org> | 2009-01-27 15:37:42 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2009-01-27 15:37:42 +0000 |
commit | 6fde76c2f69d8284cf4ab45cfaf4de61d7a749b7 (patch) | |
tree | 83b72f79c28fd90343a899d10fa82e705c45cc49 | |
parent | 4bde8bf09e5a2324c4f4ca75f006e3335c6515fe (diff) | |
download | gconf-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.c | 6 |
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 { |