[erlang-questions] How do I tell whether a process is using proc_lib?

Ulf Wiger ulf@REDACTED
Wed May 21 19:10:32 CEST 2014


As an aside, it’s considered Good Karma to discard unknown messages, partly for this reason.

BR,
Ulf W

On 21 May 2014, at 16:12, Roger Lipscombe <roger@REDACTED> wrote:

> Specifically, if I call sys:get_state(Pid) on a process that's not
> using proc_lib, and that process doesn't deal with {system, get_state}
> messages, it'll crash with a case_clause in loop (or whatever).
> 
> This is a bad thing. Can I tell that a process is a proc_lib process
> (or a gen_server, gen_fsm, etc.) before accidentally killing it?
> 
> Thanks,
> Roger.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
http://feuerlabs.com






More information about the erlang-questions mailing list