mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
dnsmasqReload: avoid mingw link failure
* src/util/dnsmasq.c (dnsmasqReload): Mingw lacks kill, but is not running a dnsmasq daemon either.
This commit is contained in:
parent
38eb50ae76
commit
b9c4db0d70
@ -332,14 +332,16 @@ dnsmasqDelete(const dnsmasqContext *ctx)
|
||||
* Reloads all the configurations associated to a context
|
||||
*/
|
||||
int
|
||||
dnsmasqReload(pid_t pid)
|
||||
dnsmasqReload(pid_t pid ATTRIBUTE_UNUSED)
|
||||
{
|
||||
#ifndef WIN32
|
||||
if (kill(pid, SIGHUP) != 0) {
|
||||
virReportSystemError(errno,
|
||||
_("Failed to make dnsmasq (PID: %d) reload config files.\n"),
|
||||
_("Failed to make dnsmasq (PID: %d) reload config files."),
|
||||
pid);
|
||||
return -1;
|
||||
}
|
||||
#endif /* WIN32 */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user