Fix small race in subprocess_test
authorTudor Bosman <tudorb@fb.com>
Sun, 22 Sep 2013 02:03:20 +0000 (19:03 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 22 Sep 2013 23:40:33 +0000 (16:40 -0700)
commit253f44cb908fd20a4de661d4d90e62665b2ed1dc
treeb39be119942bed305ae4213230c1a815e46bf515
parent5675ef276356038f2b74dcd23e7dea455dfc2aff
Fix small race in subprocess_test

Summary:
It is possible for subprocess_test_parent_death_helper's child to signal
the parent between the check for "caught" and the call to "pause()", and
therefore pause() blocks forever.

Test Plan: ran the test in a loop

Reviewed By: delong.j@fb.com

FB internal diff: D979872
folly/test/SubprocessTestParentDeathHelper.cpp