driver_control and blocking process
Tue Aug 23 08:59:55 CEST 2005
It will block the VM.
You must use driver_select() to arrange for your driver to
be called when somemthing happens with a file descriptor.
(If you don't have a file descriptor, the standard trick is
to create a pipe and pass the read end to driver to driver_select().)
Eric Merritt <> writes:
> I am working up a linked in driver using control that may block
> waiting for external events. Control seemed to be the easiest to
> implement by far. However, I h ave a worry that this will block the vm
> as a whole. I thought it might be a good idea to ask the experts.
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions