WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH]fix oshelp fcntl_setfd_cloexec typo

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]fix oshelp fcntl_setfd_cloexec typo
From: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
Date: Fri, 09 Jan 2009 15:09:51 +0800
Cc:
Delivery-date: Thu, 08 Jan 2009 23:10:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20081209)
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>