Skip to content

Commit 727726a

Browse files
committed
Merge branch 'js/wait-or-whine-can-fail' into seen
* js/wait-or-whine-can-fail: run-command: don't spam trace2_child_exit()
2 parents db3cb9f + e444ba8 commit 727726a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

run-command.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,8 @@ int finish_command(struct child_process *cmd)
984984
int finish_command_in_signal(struct child_process *cmd)
985985
{
986986
int ret = wait_or_whine(cmd->pid, cmd->args.v[0], 1);
987-
trace2_child_exit(cmd, ret);
987+
if (ret != -1)
988+
trace2_child_exit(cmd, ret);
988989
return ret;
989990
}
990991

0 commit comments

Comments
 (0)