pmrep - add signal handler for Broken Pipe exceptions, and avoid Exception
Ignored errors. New test qa/880 to test this.
Changes committed to git://git.pcp.io/mgoodwin/pcp master
commit 88fa161389e1d7198da8120a9b1909c853be7e1d
Author: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date: Tue Feb 9 12:06:49 2016 +1100
qa: add test 880 to check pmrep for broken pipe exceptions and Exception
Ignored errors
commit 8aa78cd1e59cd07cd7bf1e74920f4dd3356b0038
Merge: 7a31a19 c96ff82
Author: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date: Tue Feb 9 10:58:07 2016 +1100
Merge branch 'master' of git://oss.sgi.com/pcp/pcp
commit 7a31a198faf58104a823e84d37897dcde558cff6
Author: Mark Goodwin <mgoodwin@xxxxxxxxxx>
Date: Tue Feb 9 10:52:53 2016 +1100
pmrep: cleanup stdio on exit to avoid Exception Ignored errors
Flush and close stdout and stderr on exit to avoid "Exception Ignored"
errors when the destructor is called with i/o still pending. Also
ignore SIGPIPE to avoid broken pipe exceptions. These issues occur
when pmrep is piped to e.g. /usr/bin/head.
|