Improve diagnostics when pidfile writing fails

* src/util.c: Include path & pid when logging pidfile failure
This commit is contained in:
Daniel P. Berrange 2009-07-31 15:51:27 +01:00
parent 5d3e02aaa2
commit 88e3e8be7c

View File

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