[erlang-questions] Adding simple process to supervisor?
Ulf Wiger (TN/EAB)
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
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.
More information about the erlang-questions