diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-17 14:59:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-17 14:59:00 +0000 |
commit | d47129cf707fac663264651c7112992bc3265003 (patch) | |
tree | cc8dc1693e8bd981bf2cc0107c25305f9999f00c /lib/exec.c | |
parent | Releasing progress-linux version 6.8.0-1~progress7.99u1. (diff) | |
download | iproute2-d47129cf707fac663264651c7112992bc3265003.tar.xz iproute2-d47129cf707fac663264651c7112992bc3265003.zip |
Merging upstream version 6.9.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/exec.c')
-rw-r--r-- | lib/exec.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -36,8 +36,13 @@ int cmd_exec(const char *cmd, char **argv, bool do_fork, } } - if (setup && setup(arg)) + if (setup && setup(arg)) { + if (do_fork) { + /* In child, nothing to do */ + _exit(1); + } return -1; + } if (execvp(cmd, argv) < 0) fprintf(stderr, "exec of \"%s\" failed: %s\n", |