Read the last commands from a light process
commit000eadc4300b4b5da59ea299d9bb02ce2d541379
authormwilliams <mwilliams@fb.com>
Fri, 21 Jun 2013 17:23:27 +0000 (21 10:23 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 21 Jun 2013 23:37:10 +0000 (21 16:37 -0700)
treefe8344d00f6cf5c1913393c76bb41f74d87ab794
parent51ce8d138a219f5803ff924ce5e893594fc6e313
Read the last commands from a light process

poll can set both POLLIN and POLLHUP. We were checking for
POLLHUP first, which meant we often missed the "exit" command. This
meant the LightProcess would incorrectly report that it was exiting
because it lost its parent, rather than because it was told to exit.

Fixing this so its easier to diagnose what was going on.
hphp/util/light_process.cpp