Skip to contentSkip to conversation

fix oshelp fcntl_setfd_cloexec typo

PATCH In review Zhigang Wang 2 participants 2 messages Jan 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix oshelp fcntl_setfd_cloexec typo

This patch fixes a oshelp fcntl_setfd_cloexec typo.

Ian, please confirm.

zhigang

tools/python/xen/util/oshelp.py +1 -1
diff -Nurap xen-unstable.orig/tools/python/xen/util/oshelp.py xen-unstable/tools/python/xen/util/oshelp.py
@@ -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
[email protected]
http://lists.xensource.com/xen-devel