Commit d6dc38b4 by Alexander Vladimirov Committed by Stéphane Graber

Don't call sig_name twice, use pointer instead

parent 08ddf801
......@@ -2265,7 +2265,7 @@ void write_config(FILE *fout, struct lxc_conf *c)
if (signame == NULL) {
fprintf(fout, "lxc.haltsignal = %d\n", c->haltsignal);
} else {
fprintf(fout, "lxc.haltsignal = SIG%s\n", sig_name(c->haltsignal));
fprintf(fout, "lxc.haltsignal = SIG%s\n", signame);
}
}
if (c->stopsignal) {
......@@ -2273,7 +2273,7 @@ void write_config(FILE *fout, struct lxc_conf *c)
if (signame == NULL) {
fprintf(fout, "lxc.stopsignal = %d\n", c->stopsignal);
} else {
fprintf(fout, "lxc.stopsignal = SIG%s\n", sig_name(c->stopsignal));
fprintf(fout, "lxc.stopsignal = SIG%s\n", signame);
}
}
#if HAVE_SYS_PERSONALITY_H
......
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