Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v3 1/2] run-command: add new check_command helper

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:43

Felipe Contreras [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help