summaryrefslogtreecommitdiffstats
path: root/tools/lib/subcmd/run-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/subcmd/run-command.c')
-rw-r--r--tools/lib/subcmd/run-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/subcmd/run-command.c b/tools/lib/subcmd/run-command.c
index 5cdac21625..d435eb4235 100644
--- a/tools/lib/subcmd/run-command.c
+++ b/tools/lib/subcmd/run-command.c
@@ -122,6 +122,8 @@ int start_command(struct child_process *cmd)
}
if (cmd->preexec_cb)
cmd->preexec_cb();
+ if (cmd->no_exec_cmd)
+ exit(cmd->no_exec_cmd(cmd));
if (cmd->exec_cmd) {
execv_cmd(cmd->argv);
} else {