[erlang-questions] Adding simple process to supervisor?

Ulf Wiger (TN/EAB) ulf.wiger@REDACTED
Fri Oct 10 09:47:06 CEST 2008


Bengt Kleberg skrev:
> 
> However, the process blocks in gen_tcp:accept/1, thus missing any
> system messages during this time. Is there a way around that?

You can spawn an acceptor process and then transfer control
using controlling_process().

The acceptor process has but one job: to block while waiting
for the accept() to return. It is linked to the parent
process and doesn't trap exits.

BR,
Ulf W



More information about the erlang-questions mailing list