Commit 7d979720 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Qualify the -C test-vcl name with the PID of the process, so two

concurrent -C tests don't collided.

Problem spotted by:	fgs
parent 00736b71
......@@ -170,11 +170,14 @@ mgt_new_vcl(struct cli *cli, const char *vclname, const char *vclsrc,
unsigned status;
char *lib, *p;
struct vclprog *vp;
char buf[32];
AN(cli);
if (C_flag)
vclname = ".Cflagtest";
if (C_flag) {
bprintf(buf, ".CflagTest.%d", (int)getpid());
vclname = buf;
}
if (state == NULL)
state = "auto";
......@@ -190,6 +193,7 @@ mgt_new_vcl(struct cli *cli, const char *vclname, const char *vclsrc,
if (lib == NULL)
return;
AZ(C_flag);
vp = mgt_vcl_add(vclname, lib, state);
free(lib);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment