From: Mathieu Desnoyers Date: Thu, 16 May 2019 19:07:58 +0000 (-0400) Subject: Fix: utils.sh: handle SIGPIPE X-Git-Tag: v2.12.0-rc1~458 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=27b667f7fccef66cc3490615757d969191df3d94;hp=27b667f7fccef66cc3490615757d969191df3d94;p=lttng-tools.git Fix: utils.sh: handle SIGPIPE perl prove closes its child pipes before giving it a chance to execute the signal trap handler. This means the child will not be able to complete execution of the trap handler if that handler writes to stdout or stderr. Work-around this situation by redirecting stdin, stdout, and stderr to /dev/null if a SIGPIPE is caught. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---