Fun with open_port

Matthias Lang matthias@REDACTED
Sun Mar 21 01:43:41 CET 2004


Hi,

Definitely looks like a bug.

I have no solution, but I can confirm that I see exactly the same
behaviour under R9C from debian.

I don't get it for R8B I compiled myself.

Matthias

Gerd Flaig writes:
 > Hi,
 > 
 > the following module
 > 
 >    -module(dreck).
 >    -export([r/0]).
 >    
 >    r() ->
 >        Port = open_port({spawn, "/bin/true"}, [{line, 200}, exit_status]),
 >        receive
 >    	X ->
 >    	    X
 >        after 5000 ->
 >    	    timeout
 >        end.
 > 
 > exposes interesting behaviour:

[...]



More information about the erlang-questions mailing list