[erlang-questions] How do I tell whether a process is using proc_lib?
Dániel Szoboszlay
dszoboszlay@REDACTED
Wed May 21 16:45:20 CEST 2014
Observer already implemented such a check:
https://github.com/erlang/otp/blob/maint/lib/observer/src/observer_procinfo.erl#L287-L295
BR,
Daniel
On 2014 May 21, 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
More information about the erlang-questions
mailing list