Patches item #1309352, was opened at 2005-09-30 20:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1309352&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Brad Hards (bradh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make fcntl work properly on AMD64
Initial Comment:
The fcntl call doesn't work correctly on AMD-64, because of an
unsigned int conversion problem. I found the problem using the
dnotify.py code from buildbot.sf.net (attached). It (roughly) does:
self.flags = reduce(lambda x, y: x | y, flags) |
fcntl.DN_MULTISHOT
self.fd = os.open(dirname, os.O_RDONLY)
fcntl.fcntl(self.fd, fcntl.F_NOTIFY, self.flags)
fcntl.DN_MULTISHOT is 0x80000000, which causes
OverflowError: signed integer is greater than maximum
There is a similar fix already committed for ioctl - see
http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Modules/fcntlmodule.c?r1=2.43&r2=2.44
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1309352&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches