]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: replace popen() with pipe+fork() in "debug dev exec"
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2019 16:18:28 +0000 (17:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2019 16:20:26 +0000 (17:20 +0100)
commit368bff40cea6cee1fef46d3201ef07cd007dbc25
tree4e06eb8149cab6cc2717334198ef589b11ec2efc
parentaebeff74fc7eaef12728b1fc15b2d42d93a7767a
MINOR: debug: replace popen() with pipe+fork() in "debug dev exec"

popen() is annoying because it doesn't catch stderr. The command was
implemented using it just by pure laziness, let's just redo it a bit
cleaner using normal syscalls. Note that this command is only enabled
when built with -DDEBUG_DEV.
src/debug.c