]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Use clearer error message on failure to create pidfile
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 15 Nov 2012 15:51:09 +0000 (10:51 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 15 Nov 2012 15:51:09 +0000 (10:51 -0500)
As suggested by Serge Hallyn on lxc-devel.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc_start.c

index ca1cc2a1939e8ad16e4ec22b5323bfe5fe250f45..a2335d5957c90dd296004fb635791b38792b630b 100644 (file)
@@ -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;
                }
        }