[erlang-questions] Stopping spawned process

Garrett Smith g@REDACTED
Mon Nov 30 07:55:26 CET 2009


On Sun, Nov 29, 2009 at 10:24 AM, Robert Virding <rvirding@REDACTED> wrote:
> When Erlang dies the stdin of the spawned process will be closed. If the
> spawned process checks its stdin it should be able to detect that Erlang has
> died (or the port has been closed).

+1

When running applications as ports, I specify a command line option to
tell the app to run in a special "Erlang port" mode, which watches
stdin and shuts down when it closes. It's hard to control the child
process otherwise.

Garrett


More information about the erlang-questions mailing list