Commit c3752c0b by Stéphane Graber

Use clearer error message on failure to create pidfile

As suggested by Serge Hallyn on lxc-devel. Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 3114c982
......@@ -207,7 +207,8 @@ int main(int argc, char *argv[])
if (my_args.pidfile != NULL) {
pid_fp = fopen(my_args.pidfile, "w");
if (pid_fp == NULL) {
SYSERROR("failed to create '%s'", my_args.name);
SYSERROR("failed to create pidfile '%s' for '%s'",
my_args.pidfile, my_args.name);
return err;
}
}
......
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