mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
Improve diagnostics when pidfile writing fails
* src/util.c: Include path & pid when logging pidfile failure
This commit is contained in:
parent
5d3e02aaa2
commit
88e3e8be7c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user