diff options
author | Amitay Isaacs <amitay@gmail.com> | 2013-11-26 15:41:50 +1100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-11-27 18:46:17 +0100 |
commit | c18f3eeffbb93d4e759198c7c2b85aea2c3a6338 (patch) | |
tree | 7ca976e2d24a867ba438b1fb3157abca7d4d84eb /ctdb/config | |
parent | 21ef3b1cc0b74aefed533e2129d7677e59451f86 (diff) | |
download | samba-c18f3eeffbb93d4e759198c7c2b85aea2c3a6338.tar.gz samba-c18f3eeffbb93d4e759198c7c2b85aea2c3a6338.tar.xz samba-c18f3eeffbb93d4e759198c7c2b85aea2c3a6338.zip |
ctdb-scripts: Be careful when generating unique pids for stack traces
sort expects the data to be line based, so make it so.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'ctdb/config')
-rwxr-xr-x | ctdb/config/debug_locks.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/debug_locks.sh b/ctdb/config/debug_locks.sh index 8092d93034..54b52ed146 100755 --- a/ctdb/config/debug_locks.sh +++ b/ctdb/config/debug_locks.sh @@ -51,7 +51,7 @@ loadconfig ctdb pids=$(echo "$out" | grep -v "W$" | grep "$db" | grep -v ctdbd | awk '{print $1}') all_pids="$all_pids $pids" done - pids=$(echo $all_pids | sort -u) + pids=$(echo $all_pids | tr " " "\n" | sort -u) # For each process waiting, log stack trace for pid in $pids ; do |