Fix race in persistent_socket.php
commite32ee4da8f66a69d57fe66a2c60a1e04f60ae1e2
authorMark Williams <mwilliams@fb.com>
Wed, 28 Dec 2016 17:14:32 +0000 (28 09:14 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 28 Dec 2016 17:30:41 +0000 (28 09:30 -0800)
tree5228983d921453ae65d5df3cfe876c3e52d47505
parenta2f897ea8fe4afc2b8abb903edbde1b62012238c
Fix race in persistent_socket.php

Summary:
test_client can produce output prior to the echo in the current
scheme. Just move the echo prior to the fork to guarantee it happens
first.

Reviewed By: mxw

Differential Revision: D4369277

fbshipit-source-id: baa7a131b106809591441dea2a76cae00d027317
hphp/test/slow/ext_socket/persistent_socket.php