mirror of
https://github.com/uselessd/alcove.git
synced 2026-04-15 01:04:41 +00:00
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.
This commit is contained in:
@@ -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}) ->
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user