Message48806
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
|
|
Date |
User |
Action |
Args |
2007-08-23 15:44:05 | admin | link | issue1309352 messages |
2007-08-23 15:44:05 | admin | create | |
|