Stopping spawned process

Erik Reitsma erlang@REDACTED
Sun Nov 29 14:56:36 CET 2009


Hi all,

When I spawn an external process using open_port/2, and then I stop the 
Erlang VM, the spawned process is not terminated. For example, when I do 
the following the xterm remains.


Erlang R13B01 (erts-5.7.2) [source] [64-bit] [smp:4:4] [rq:4] 
[async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.2  (abort with ^G)
1> open_port({spawn_executable,"/usr/bin/xterm"},[]).
#Port<0.424>
2>
User switch command
 --> q


Is there a way to have the spawned processes terminated when the Erlang 
VM terminates?

Regards,
*Erik.


More information about the erlang-questions mailing list