]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Improve diagnostics when pidfile writing fails
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 31 Jul 2009 14:51:27 +0000 (15:51 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 31 Jul 2009 16:06:44 +0000 (17:06 +0100)
* src/util.c: Include path & pid when logging pidfile failure

src/util.c

index 39aae24f79b4529f200b04a2e7f975c4f73da09a..0d4f3fa49545d05248715d2eb09779b29a715d8f 100644 (file)
@@ -541,7 +541,8 @@ __virExec(virConnectPtr conn,
                 usleep(500*1000);
                 kill(pid, SIGTERM);
                 virReportSystemError(conn, errno,
-                                     "%s", _("could not write pidfile"));
+                                     _("could not write pidfile %s for %d"),
+                                     pidfile, pid);
                 _exit(1);
             }
             _exit(0);