From 2a46ca2dbe1410c1e7ce057051cdb65526a87485 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Fri, 21 Dec 2018 10:36:08 +0100 Subject: erts: Make sure to take main lock when dumping proc info If the main lock is not taken then any process running on a dirty scheduler may cause all kinds of problems. --- erts/emulator/beam/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'erts/emulator/beam/global.h') diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h index f1c6adeedd..36b753ca9c 100644 --- a/erts/emulator/beam/global.h +++ b/erts/emulator/beam/global.h @@ -962,7 +962,7 @@ void init_break_handler(void); void erts_set_ignore_break(void); void erts_replace_intr(void); void process_info(fmtfn_t, void *); -void print_process_info(fmtfn_t, void *, Process*); +void print_process_info(fmtfn_t, void *, Process*, ErtsProcLocks); void info(fmtfn_t, void *); void loaded(fmtfn_t, void *); void erts_print_base64(fmtfn_t to, void *to_arg, byte* src, Uint size); -- cgit v1.2.3