summaryrefslogtreecommitdiff
path: root/python/runtests.py
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2021-12-05 23:03:11 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-06-16 12:00:23 -0400
commit5e24868b15b0b296362f500b539c7201cc815036 (patch)
tree31e73fc8e62940587eab6f47f65cf4605766a0d1 /python/runtests.py
parent668bbbce51d5cc2ba50ef4057fd59d18f8404bcd (diff)
tools: improve explanation of 'wrap' options
We support 'wrap' variables in /etc/frr/daemons, but the explanation given there doesn't touch on some of the subtleties of using these variables. The variables were designed for use with Valgrind, which has special behavior when run with programs that daemonize; Valgrind will intercept the fork()'d child process and run itself instead of the child. This behavior allows it to follow the same forking semantics as the target program. For virtually every other wrapper, the wrap variables do not work as demonstrated because the wrapper programs do not daemonize. If the wrappers do not daemonize, they will block the init script. The examples given with "perf" for example simply do not work, because perf remains in the foreground even as it tracks forked children. This patch adds an explanation of the behavior expected by the init script and offers a solution for getting that behavior. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'python/runtests.py')
0 files changed, 0 insertions, 0 deletions