Handle failures when reopening STDIN
Handle failures when reopening STDIN

This technique isn't fully baked yet. For now, simply catch the
exception if reopening doesn't work (which happens in Travis or Jenkins
runs).

We're catching all types of exception because the type of exception
thrown changes based on platform.

Change-Id: Ie135bc4d8ad01a797fbef729e79ec39ef4055ff3
Reviewed-on: http://gerrit.causes.com/37397
Tested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@causes.com>
Reviewed-by: Shane da Silva <6f6e68d1df92f30cb4b3ce35260ddf94a402f33d@causes.com>

gnagel/overcommit,blech75/overcommit,oxocode/overcommit,blech75/overcommit,TheSooth/overcommit,gnagel/overcommit,TheSooth/overcommit,oxocode/overcommit