Thread (6 messages) flat view 6 messages, 2 authors, 2016-06-15
STALE3716d

Revision v2 of 2 in this series.

Revisions (2)
  1. v1 [diff vs current]
  2. v2 current

[PATCH v2 4/4] tmp: run-command: code to exercise check_command

From: Felipe Contreras <hidden>
Date: 2016-06-15 22:56:36
Subsystem: the rest · Maintainer: Linus Torvalds

Do not merge!

Signed-off-by: Felipe Contreras <redacted>
---
 run-command.c | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/run-command.c b/run-command.c
index b900c6e..2bb3dcf 100644
--- a/run-command.c
+++ b/run-command.c
@@ -246,6 +246,11 @@ static int wait_or_whine(struct child_process *cmd, pid_t pid, const char *argv0
 	pid_t waiting;
 	int failed_errno = 0;
 
+	do {
+		if (!check_command(cmd))
+			break;
+	} while(1);
+
 	waiting = persistent_waitpid(cmd, pid, &status);
 
 	if (waiting < 0) {
-- 
1.8.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help