[master] 5879216 Let process do -run as well
Federico G. Schwindt
fgsch at lodoss.net
Mon Sep 12 21:30:19 CEST 2016
commit 587921692eab5b4963c283afb5efe551459d6d19
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Mon Sep 12 20:25:18 2016 +0100
Let process do -run as well
diff --git a/bin/varnishtest/vtc_process.c b/bin/varnishtest/vtc_process.c
index c87f7dc..977587d 100644
--- a/bin/varnishtest/vtc_process.c
+++ b/bin/varnishtest/vtc_process.c
@@ -231,6 +231,14 @@ process_wait(const struct process *p)
AZ(pthread_join(p->tp, &v));
}
+static void
+process_run(struct process *p)
+{
+
+ process_start(p);
+ process_wait(p);
+}
+
/**********************************************************************
* Send a signal to a process
*/
@@ -349,6 +357,10 @@ cmd_process(CMD_ARGS)
process_wait(p);
continue;
}
+ if (!strcmp(*av, "-run")) {
+ process_run(p);
+ continue;
+ }
if (!strcmp(*av, "-kill")) {
process_kill(p, av[1]);
av++;
More information about the varnish-commit
mailing list