diff options
author | Sverker Eriksson <[email protected]> | 2018-02-22 20:25:04 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-02-22 20:31:38 +0100 |
commit | 2e2d1ea0affa72b613d291f4d9002292d878fc2b (patch) | |
tree | 75838229a860b10a9df432d5f2c131d2bee2d902 /lib/observer/src/crashdump_viewer.erl | |
parent | 105c2f9d8e2846857b4aa37ebec70439e429c497 (diff) | |
download | otp-2e2d1ea0affa72b613d291f4d9002292d878fc2b.tar.gz otp-2e2d1ea0affa72b613d291f4d9002292d878fc2b.tar.bz2 otp-2e2d1ea0affa72b613d291f4d9002292d878fc2b.zip |
erts,observer: Add port-suspended pids to crash dump
Diffstat (limited to 'lib/observer/src/crashdump_viewer.erl')
-rw-r--r-- | lib/observer/src/crashdump_viewer.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/observer/src/crashdump_viewer.erl b/lib/observer/src/crashdump_viewer.erl index 07c2e1cd47..d2a175d52d 100644 --- a/lib/observer/src/crashdump_viewer.erl +++ b/lib/observer/src/crashdump_viewer.erl @@ -1676,6 +1676,10 @@ get_portinfo(Fd,Port) -> {Pid,Pid++" ("++Ref++")"} end || Mon <- Monitors0], get_portinfo(Fd,Port#port{monitors=Monitors}); + "Suspended" -> + Pids = split_pid_list_no_space(bytes(Fd)), + Suspended = [{Pid,Pid} || Pid <- Pids], + get_portinfo(Fd,Port#port{suspended=Suspended}); "Port controls linked-in driver" -> Str = lists:flatten(["Linked in driver: " | string(Fd)]), get_portinfo(Fd,Port#port{controls=Str}); |