[Fix] Better error reporting and interrupt handling on LightProcess
commitb20591886ed71a57cc0c2e14661c2e195529c79b
authorqigao <gao@fb.com>
Fri, 2 Sep 2011 01:25:10 +0000 (1 18:25 -0700)
committermacvicar <macvicar@fb.com>
Mon, 5 Sep 2011 22:34:51 +0000 (5 15:34 -0700)
tree6492906bdbbab09fc81b101d57557bb49948c2fb
parentba266eb06e9ed676a4b06125c9c5c87b681df72b
[Fix] Better error reporting and interrupt handling on LightProcess

Summary:
Currently LightProcess's loop is not handling EINTR well, and error
reporting may set the errno to 0 from libafdt. This diff makes it
slightly better in reporting and ignores EINTR when doing the poll.

Test Plan: make fast_tests

Reviewers: myang, mwilliams

Reviewed By: myang

CC: tlerios, ps, mwilliams, myang, qigao
Differential Revision: 317036

Task ID: 696061
src/util/light_process.cpp