mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 23:37:42 +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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user