Bump version and fix comment

This commit is contained in:
Michael Santos
2014-04-22 14:19:45 -04:00
parent 26a207d876
commit 8a1534459f
2 changed files with 3 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
{application, alcove,
[
{description, "Erlang sandbox for ports"},
{vsn, "0.4.0"},
{vsn, "0.4.1"},
{registered, []},
{applications, [
kernel,

View File

@@ -204,14 +204,8 @@ code_change(_OldVsn, State, _Extra) ->
% Reply from a child process.
%
% The parent process may coalesce 2 writes from the child into 1 read. The
% parent could read the length header then read length bytes except that
% the child may have called execvp(). After calling exec(), the data
% returned from the child will not contain a length header.
%
% Work around this by converting the reply into a list of messages. The
% first message matching the requested type is returned to the caller. The
% remaining messages are pushed back into the process' mailbox.
% Several writes from the child process may be coalesced into 1 read by
% the parent.
handle_info({Port, {data, Data}}, #state{port = Port, pid = Pid} = State) ->
[ Pid ! {self(), Msg} || Msg <- decode(Data) ],
{noreply, State};