dpctl: Exit unsuccessfully if a write to stdout or stderr failed.
authorBen Pfaff <blp@nicira.com>
Fri, 9 Jan 2009 00:56:50 +0000 (16:56 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 13 Jan 2009 01:00:28 +0000 (17:00 -0800)
commita3e01bdd7dc96667d96a15b992a2fdf49a6aed2d
tree441bacdc2f149e7fc4c80dee37e8aa55e144fc31
parent0475211bdcf97be1690023016ce127727e2cc5fa
dpctl: Exit unsuccessfully if a write to stdout or stderr failed.

A program should exit with an error if its output failed, so check for
this before termination.

Found by Chris Eagle via Fortify.
utilities/dpctl.c