common: improve redirect_output() error handling
authorBrian Norris <banorris@uci.edu>
Thu, 4 Apr 2013 19:55:33 +0000 (12:55 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 4 Apr 2013 20:03:14 +0000 (13:03 -0700)
Check the return code and errno results of all system/library calls.
Also delete the extraneous 'fd' variable and use the appropriate
STDOUT_FILENO macro instead of fileno(stdout).


No differences found