closing a port doesn't kill the connected process?

Jacob Vorreuter jacob.vorreuter@REDACTED
Mon Mar 22 20:00:05 CET 2010


I'm starting a redis server instance by opening an Erlang port.  When the Erlang process exits or I explicitly close the port the os process is not killed.  Is there a way to accomplish that?

1> Port = erlang:open_port({spawn, "redis-server"}, [binary, exit_status]).                                
#Port<0.429>
2> erlang:port_close(Port).
true

$ ps -ax | grep redis-server
31374 ??         0:00.02 redis-server

Thanks,

Jake


More information about the erlang-questions mailing list