From 8a1534459ffdca9341d804844521dfd9b93083c1 Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Tue, 22 Apr 2014 14:19:45 -0400 Subject: [PATCH] Bump version and fix comment --- src/alcove.app.src | 2 +- src/alcove_drv.erl | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/alcove.app.src b/src/alcove.app.src index 17936ff..76aee5d 100644 --- a/src/alcove.app.src +++ b/src/alcove.app.src @@ -1,7 +1,7 @@ {application, alcove, [ {description, "Erlang sandbox for ports"}, - {vsn, "0.4.0"}, + {vsn, "0.4.1"}, {registered, []}, {applications, [ kernel, diff --git a/src/alcove_drv.erl b/src/alcove_drv.erl index b6f0c01..19192f0 100644 --- a/src/alcove_drv.erl +++ b/src/alcove_drv.erl @@ -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};