[erlang-questions] supervise a python process

Iñaki Garay <>
Fri Feb 11 13:30:15 CET 2011


On Fri, Feb 11, 2011 at 09:17, Dmitry Vasiliev <> wrote:
> 11.02.2011 14:11, Roberto Ostinelli пишет:
>>
>> i need to integrate existing python code with a SOA erlang layer, which
>> provides some distribution facilities.
>>
>> i'm thinking to use BERT to enable communication between the erlang layer
>> and python. the main point to not use ports is that, afaik, that if a
>> python
>> port crashes the whole erlang VM goes down, and the point of using erlang
>> supervisors to provide fault-tolerancy gets lost.
>
> It's just not true. Only the process which created the port (the connected
> process of the port which is linked to the port) is terminates when port is
> closed. So you can easily use supervisors with ports.
Perhaps there is some confusion regarding ports and linked-in drivers?
cf. Ports vs. Port Drivers:

http://www.erlang.org/doc/tutorial/c_port.html
http://www.erlang.org/doc/tutorial/c_portdriver.html

-- 
Iñaki Garay.


More information about the erlang-questions mailing list