|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH]fix oshelp fcntl_setfd_cloexec typo
This patch fixes a oshelp fcntl_setfd_cloexec typo.
Ian, please confirm.
Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
zhigang
diff -Nurap xen-unstable.orig/tools/python/xen/util/oshelp.py
xen-unstable/tools/python/xen/util/oshelp.py
--- xen-unstable.orig/tools/python/xen/util/oshelp.py 2009-01-09
14:48:07.000000000 +0800
+++ xen-unstable/tools/python/xen/util/oshelp.py 2009-01-09
14:59:35.000000000 +0800
@@ -5,7 +5,7 @@ def fcntl_setfd_cloexec(file, bool):
f = fcntl.fcntl(file, fcntl.F_GETFD)
if bool: f |= fcntl.FD_CLOEXEC
else: f &= ~fcntl.FD_CLOEXEC
- fcntl.fcntl(file, fcntl.F_SETFD)
+ fcntl.fcntl(file, fcntl.F_SETFD, f)
def waitstatus_description(st):
if os.WIFEXITED(st):
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH]fix oshelp fcntl_setfd_cloexec typo,
Zhigang Wang <=
|
|
|
|
|