mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-04 12:57:45 +00:00
fix
This commit is contained in:
1 parent
0dd6342d72
commit
2efc55a4cc
4 files changed
+22
-85
No files matched your search
@@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
minutes=$1
|
||||
sleep $((minutes * 60))
|
||||
pid=$(pgrep -x simplex-chat-test | head -1)
|
||||
if [ -z "$pid" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
children=$(pgrep -P "$pid")
|
||||
pids="$pid $children"
|
||||
for child in $children; do
|
||||
pids="$pids $(pgrep -P "$child")"
|
||||
done
|
||||
|
||||
echo "::group::simplex-chat-test is still running after $minutes minutes"
|
||||
for p in $pids; do
|
||||
ps -o pid,ppid,stat,etime,command -p "$p"
|
||||
done
|
||||
for p in $pids; do
|
||||
echo "=== stacks of $p"
|
||||
if [ "$(uname)" = Darwin ]; then
|
||||
sample "$p" 3 -file /dev/stdout
|
||||
else
|
||||
for task in /proc/"$p"/task/*; do
|
||||
echo "--- thread ${task##*/} $(cat "$task"/comm) $(cat "$task"/wchan)"
|
||||
sudo cat "$task"/stack
|
||||
done
|
||||
fi
|
||||
done
|
||||
echo "::endgroup::"
|
||||
kill "$pid"
|
||||
Reference in new issue
Block a user