summaryrefslogtreecommitdiff
path: root/ctdb/doc
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-11-17 14:15:14 +1100
committerAmitay Isaacs <amitay@samba.org>2014-11-18 06:37:44 +0100
commit7f377cf26ecec10cd77f28c1993c48337279892d (patch)
tree38da431d7959206054330057f4bed38fc516b940 /ctdb/doc
parent4cd5be87daf531cb8a67f31b91cceeaf2c488127 (diff)
downloadsamba-7f377cf26ecec10cd77f28c1993c48337279892d.tar.gz
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
Diffstat (limited to 'ctdb/doc')
-rw-r--r--ctdb/doc/ctdbd.conf.5.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/ctdb/doc/ctdbd.conf.5.xml b/ctdb/doc/ctdbd.conf.5.xml
index cb48d721d06..cf71a3509bd 100644
--- a/ctdb/doc/ctdbd.conf.5.xml
+++ b/ctdb/doc/ctdbd.conf.5.xml
@@ -1521,11 +1521,13 @@ CTDB_SET_MonitorInterval=20
<para>
REGEXP specifies interesting processes for which stack
traces should be logged when debugging hung eventscripts
- and those processes are matched in pstree output. See
- also <citetitle>CTDB_DEBUG_HUNG_SCRIPT</citetitle>.
+ and those processes are matched in pstree output. REGEXP
+ is an extended regexp so choices are separated by pipes
+ ('|'). However, REGEXP should not contain parentheses.
+ See also <citetitle>CTDB_DEBUG_HUNG_SCRIPT</citetitle>.
</para>
<para>
- Default is "exportfs\|rpcinfo".
+ Default is "exportfs|rpcinfo".
</para>
</listitem>
</varlistentry>