ctdb-scripts: Fix stack dumping when debugging hung scripts
authorMartin Schwenke <martin@meltin.net>
Mon, 17 Nov 2014 03:15:14 +0000 (14:15 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 18 Nov 2014 05:37:44 +0000 (06:37 +0100)
commit7f377cf26ecec10cd77f28c1993c48337279892d
tree38da431d7959206054330057f4bed38fc516b940
parent4cd5be87daf531cb8a67f31b91cceeaf2c488127
ctdb-scripts: Fix stack dumping when debugging hung scripts

There are parentheses missing that stop the default pattern from
matching commands with trailing garbage (e.g. "exportfs.orig").

A careful check of POSIX (and running GNU sed with --posix) suggests
that "\|" isn't a supported way of specifying alternation in a regular
expression.  Therefore, it is clearer to switch to extended regular
expressions so that this has a chance of being portable (even though
the point is to print /proc/<pid>/stack, which only works on Linux).

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Nov 18 06:37:45 CET 2014 on sn-devel-104
ctdb/config/debug-hung-script.sh
ctdb/doc/ctdbd.conf.5.xml
ctdb/tests/complex/90_debug_hung_script.sh