diff options
author | Lukas Larsson <[email protected]> | 2018-12-21 10:36:08 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2019-01-15 16:34:17 +0100 |
commit | 2a46ca2dbe1410c1e7ce057051cdb65526a87485 (patch) | |
tree | b70599675ba75af22433a5a4fa61eafad22d94de /erts/emulator/beam/global.h | |
parent | 5f5d0b3dd311ef16b7c6cc61d575cd7e5eccc291 (diff) | |
download | otp-2a46ca2dbe1410c1e7ce057051cdb65526a87485.tar.gz otp-2a46ca2dbe1410c1e7ce057051cdb65526a87485.tar.bz2 otp-2a46ca2dbe1410c1e7ce057051cdb65526a87485.zip |
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.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r-- | erts/emulator/beam/global.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |