Merge pull request #359 from basho/rz-wait-for-cmd

Faster wait_for_cmd that preserves order
This commit is contained in:
Ryan Zezeski 2013-08-21 09:02:48 -07:00
commit 10f327c7e9

View File

@ -499,9 +499,6 @@ wait_for_cmd(Port) ->
rt:wait_until(node(),
fun(_) ->
receive
{Port, Msg={data, _}} ->
self() ! {Port, Msg},
false;
{Port, Msg={exit_status, _}} ->
catch port_close(Port),
self() ! {Port, Msg},