Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
af860067
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
af860067
编写于
5月 12, 2009
作者:
C
Cole Robinson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update POTFILES, and s/write/safewrite/ to appease 'make syntax-check'
上级
be9e5185
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
7 deletion
+14
-7
ChangeLog
ChangeLog
+5
-0
po/POTFILES.in
po/POTFILES.in
+1
-0
tests/eventtest.c
tests/eventtest.c
+8
-7
未找到文件。
ChangeLog
浏览文件 @
af860067
Tue May 12 16:39:06 EDT 2009 Cole Robinson <crobinso@redhat.com>
* tests/eventtest.c: Use safewrite instead of write
* po/POTFILES.in: Add src/vbox/vbox_driver.c
Tue May 12 16:25:59 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/storage_backend_fs.c: Break out FS volume build routines to
...
...
po/POTFILES.in
浏览文件 @
af860067
...
...
@@ -38,6 +38,7 @@ src/uml_conf.c
src/uml_driver.c
src/util.c
src/uuid.c
src/vbox/vbox_driver.c
src/vbox/vbox_tmpl.c
src/virsh.c
src/virterror.c
...
...
tests/eventtest.c
浏览文件 @
af860067
...
...
@@ -30,6 +30,7 @@
#include "internal.h"
#include "threads.h"
#include "logging.h"
#include "util.h"
#include "../qemud/event.h"
#define NUM_FDS 5
...
...
@@ -309,7 +310,7 @@ mymain(int argc, char **argv)
/* First time, is easy - just try triggering one of our
* registered handles */
startJob
(
"Simple write"
,
&
test
);
ret
=
write
(
handles
[
1
].
pipeFD
[
1
],
&
one
,
1
);
ret
=
safe
write
(
handles
[
1
].
pipeFD
[
1
],
&
one
,
1
);
if
(
finishJob
(
1
,
-
1
)
!=
EXIT_SUCCESS
)
return
EXIT_FAILURE
;
...
...
@@ -319,7 +320,7 @@ mymain(int argc, char **argv)
* try triggering another handle */
virEventRemoveHandleImpl
(
handles
[
0
].
watch
);
startJob
(
"Deleted before poll"
,
&
test
);
ret
=
write
(
handles
[
1
].
pipeFD
[
1
],
&
one
,
1
);
ret
=
safe
write
(
handles
[
1
].
pipeFD
[
1
],
&
one
,
1
);
if
(
finishJob
(
1
,
-
1
)
!=
EXIT_SUCCESS
)
return
EXIT_FAILURE
;
...
...
@@ -346,13 +347,13 @@ mymain(int argc, char **argv)
/* NB: this case is subject to a bit of a race condition.
* Only 1 time in 3 does the 2nd write get triggered by
* before poll() exits for the first write(). We don't
* before poll() exits for the first
safe
write(). We don't
* see a hard failure in other cases, so nothing to worry
* about */
startJob
(
"Deleted during dispatch"
,
&
test
);
handles
[
2
].
delete
=
handles
[
3
].
watch
;
ret
=
write
(
handles
[
2
].
pipeFD
[
1
],
&
one
,
1
);
ret
=
write
(
handles
[
3
].
pipeFD
[
1
],
&
one
,
1
);
ret
=
safe
write
(
handles
[
2
].
pipeFD
[
1
],
&
one
,
1
);
ret
=
safe
write
(
handles
[
3
].
pipeFD
[
1
],
&
one
,
1
);
if
(
finishJob
(
2
,
-
1
)
!=
EXIT_SUCCESS
)
return
EXIT_FAILURE
;
...
...
@@ -361,7 +362,7 @@ mymain(int argc, char **argv)
/* Extreme fun, lets delete ourselves during dispatch */
startJob
(
"Deleted during dispatch"
,
&
test
);
handles
[
2
].
delete
=
handles
[
2
].
watch
;
ret
=
write
(
handles
[
2
].
pipeFD
[
1
],
&
one
,
1
);
ret
=
safe
write
(
handles
[
2
].
pipeFD
[
1
],
&
one
,
1
);
if
(
finishJob
(
2
,
-
1
)
!=
EXIT_SUCCESS
)
return
EXIT_FAILURE
;
...
...
@@ -410,7 +411,7 @@ mymain(int argc, char **argv)
/* NB: this case is subject to a bit of a race condition.
* Only 1 time in 3 does the 2nd write get triggered by
* before poll() exits for the first write(). We don't
* before poll() exits for the first
safe
write(). We don't
* see a hard failure in other cases, so nothing to worry
* about */
virEventUpdateTimeoutImpl
(
timers
[
2
].
timer
,
100
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录