Fix upgrade auto-restart with 0 retries
commit4ebd13cbddb1cdfa30b320b7842cfcd97145b982
authorJosh Watzman <jwatzman@fb.com>
Wed, 20 Aug 2014 20:24:45 +0000 (20 13:24 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Wed, 20 Aug 2014 20:30:21 +0000 (20 13:30 -0700)
treeb1dab6c6336caed4860b2949abfd92cc63f2a5dd
parentd7a95c828395a024c76a887a6e5285729055a43d
Fix upgrade auto-restart with 0 retries

Summary: If you do `hh_client --retries 0`, the first time we'll kill
the server, the second time we'll start it back up, and the third time
will work (if the server is up by that point). We should start the
server in the same pass we kill it in -- that shouldn't count as a
retry.

Reviewed By: @elgenie

Differential Revision: D1507218
hphp/hack/src/client/clientCheck.ml
hphp/hack/src/client/clientCheckStatus.ml
hphp/hack/src/client/clientExceptions.ml