提交 b9c4db0d 编写于 作者: E Eric Blake

dnsmasqReload: avoid mingw link failure

* src/util/dnsmasq.c (dnsmasqReload): Mingw lacks kill, but is not
running a dnsmasq daemon either.
上级 38eb50ae
...@@ -332,14 +332,16 @@ dnsmasqDelete(const dnsmasqContext *ctx) ...@@ -332,14 +332,16 @@ dnsmasqDelete(const dnsmasqContext *ctx)
* Reloads all the configurations associated to a context * Reloads all the configurations associated to a context
*/ */
int int
dnsmasqReload(pid_t pid) dnsmasqReload(pid_t pid ATTRIBUTE_UNUSED)
{ {
#ifndef WIN32
if (kill(pid, SIGHUP) != 0) { if (kill(pid, SIGHUP) != 0) {
virReportSystemError(errno, virReportSystemError(errno,
_("Failed to make dnsmasq (PID: %d) reload config files.\n"), _("Failed to make dnsmasq (PID: %d) reload config files."),
pid); pid);
return -1; return -1;
} }
#endif /* WIN32 */
return 0; return 0;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册