keepalive

来源:互联网 发布:淘宝主营在哪里设置 编辑:程序博客网 时间:2024/05/21 07:01
In libvirt, it's perfectly possible and widely used to have disabledtimers (timeout=-1) and fire them up 'randomly' with timeout=0.However, with current mapping into glib mainloop it's not possibleand causing troubles. 
--- libvirt-glib/libvirt-glib-event.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 
diff --git a/libvirt-glib/libvirt-glib-event.c b/libvirt-glib/libvirt-glib-event.cindex 94f4de8..c3eb3c8 100644--- a/libvirt-glib/libvirt-glib-event.c+++ b/libvirt-glib/libvirt-glib-event.c 
@@ -384,7 +384,7 @@ 
gvir_event_timeout_update(int timer, if (interval >= 0) { 
 if (data->source) 
- goto cleanup; 
+ g_source_remove(data->source); 
 data->interval = interval; data->source = g_timeout_add(data->interval, 
-- 1.7.8.5
https://bugzilla.redhat.com/show_bug.cgi?id=819617https://www.redhat.com/archives/libvir-list/2012-May/msg01157.htmlhttp://www.redhat.com/archives/libvir-list/2012-June/msg00445.html


阅读(88) | 评论(0) | 转发(0) |
0

上一篇:ubuntu 12.04 透明支持解决方法

下一篇:skype

相关热门文章
  • haproxy+keepalived实现高可用...
  • Keepalived实现Redis Failover...
  • keepalived安装配置
  • TCP选项之TCP_KEEPALIVE
  • Redis主从自动failover
  • linux 常见服务端口
  • 【ROOTFS搭建】busybox的httpd...
  • 什么是shell
  • linux socket的bug??
  • linux的线程是否受到了保护?...
  • 关于enqueue 的dump 文件帮看...
  • tar --newer 05/12/2013 这个...
  • 请教nginx代理tomcat作为子目...
  • LDAP安装 bus error是什么问...
  • select语句不修改sql,如何优...
给主人留下些什么吧!~~