open_port

Dietmar Schaefer dietmar@REDACTED
Thu Jan 12 09:23:43 CET 2006


Hi !


Is there a way to distinguish the exit status of an unix process started 
by open_port ?

No matter if my process terminates because of a devide by zero or I 
close it ->
Reason is always normal


handle_info({'EXIT', Port, Reason}, Port) ->
    io:format("External program exited Reason=~p Port=~p~n",
          [Reason, Port]),
    {stop, shutdown, noport};


Thanks



regards


Dietmar



More information about the erlang-questions mailing list