aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-02-22 20:25:04 +0100
committerSverker Eriksson <[email protected]>2018-02-22 20:31:38 +0100
commit2e2d1ea0affa72b613d291f4d9002292d878fc2b (patch)
tree75838229a860b10a9df432d5f2c131d2bee2d902 /erts/emulator/beam/erl_process.c
parent105c2f9d8e2846857b4aa37ebec70439e429c497 (diff)
downloadotp-2e2d1ea0affa72b613d291f4d9002292d878fc2b.tar.gz
otp-2e2d1ea0affa72b613d291f4d9002292d878fc2b.tar.bz2
otp-2e2d1ea0affa72b613d291f4d9002292d878fc2b.zip
erts,observer: Add port-suspended pids to crash dump
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r--erts/emulator/beam/erl_process.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index 5fcb100fae..9b22f024b0 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -1609,6 +1609,20 @@ erts_proclist_destroy(ErtsProcList *plp)
proclist_destroy(plp);
}
+void
+erts_proclist_dump(fmtfn_t to, void *to_arg, ErtsProcList *plp)
+{
+ ErtsProcList *first = plp;
+
+ while (plp) {
+ erts_print(to, to_arg, "%T", plp->pid);
+ plp = plp->next;
+ if (plp == first)
+ break;
+ }
+ erts_print(to, to_arg, "\n");
+}
+
void *
erts_psd_set_init(Process *p, int ix, void *data)
{