Felipe Contreras <felipe.contreras@xxxxxxxxx> writes: > - while ((waiting = waitpid(pid, &status, 0)) < 0 && errno == EINTR) > - ; /* nothing */ > + /* First try the last status from check_command() */ > + if (cmd && cmd->last_status.valid) { > + status = cmd->last_status.status; > + waiting = pid; > + } else { > + while ((waiting = waitpid(pid, status, 0)) < 0 && errno == EINTR) > + ; /* nothing */ waitpid(pid, &status, 0), I presume. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html