Chinaunix首页 | 论坛 | 博客
  • 博客访问: 341794
  • 博文数量: 135
  • 博客积分: 4637
  • 博客等级: 上校
  • 技术积分: 1410
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-21 13:22
文章分类

全部博文(135)

文章存档

2013年(12)

2012年(14)

2011年(42)

2010年(22)

2009年(18)

2008年(27)

分类: LINUX

2012-09-21 22:07:25

In libvirt, it's perfectly possible and widely used to have disabled timers (timeout=-1) and fire them up 'randomly' with timeout=0. However, with current mapping into glib mainloop it's not possible and 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.c index 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



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

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

下一篇:skype

给主人留下些什么吧!~~