exec.c: redirect unwanted command output to /dev/null
commitc9eca1db47283484e110bd978b95de681cf3e0d8
authorKarsten Blees <blees@dcon.de>
Wed, 5 Mar 2014 21:34:53 +0000 (5 22:34 +0100)
committerKarsten Blees <blees@dcon.de>
Wed, 5 Mar 2014 21:52:21 +0000 (5 22:52 +0100)
tree56dc3ab1981d190cd5d501b8f1791ee19f04f6a8
parent8a390612ea124f4d2907f3f5ba6e3b5a51e6cbe3
exec.c: redirect unwanted command output to /dev/null

Git-Cheetah redirects and reads stdout / stderr of forked commands only if
it needs to. Otherwise this output simply goes to stdout / stderr of the
calling file manager process. This is OK for GUI-based file managers (e.g.
Windows Explorer), as there is no console.

For text-based file managers (e.g. Far Manager) this is a problem, as such
unwanted console output messes up the UI.

Redirect stdout / stderr of forked commands to /dev/null if Git-Cheetah
doesn't need it.

Signed-off-by: Karsten Blees <blees@dcon.de>
common/exec.c