From e863582f179b54482972fbac71f00678734f3265 Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Sun, 2 Mar 2014 11:32:05 -0500 Subject: [PATCH] Set the receive functions to return immediately Because the exec() functions will never return, alcove can't use a blocking call. Until something better is worked out, return immediately if nothing is in the mailbox. --- bin/alcove.escript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/alcove.escript b/bin/alcove.escript index b3df560..c56ed75 100755 --- a/bin/alcove.escript +++ b/bin/alcove.escript @@ -159,7 +159,7 @@ stdin(Port, Data) -> static({stdout,1}) -> " stdout(Port) -> - stdout(Port, infinity). + stdout(Port, 0). "; static({stdout,2}) -> " @@ -176,7 +176,7 @@ stdout(Port, Timeout) -> static({stderr,1}) -> " stderr(Port) -> - stderr(Port, infinity). + stderr(Port, 0). "; static({stderr,2}) -> " @@ -193,7 +193,7 @@ stderr(Port, Timeout) -> static({recv,1}) -> " recv(Port) -> - recv(Port, infinity). + recv(Port, 0). "; static({recv,2}) -> "