Merge tag 'perf-tools-for-v6.9-2024-03-13' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-microblaze.git] / tools / lib / subcmd / run-command.c
index 5cdac21..d435eb4 100644 (file)
@@ -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 {