John Molohan wrote:
> Hello all,
>
> I've seen various issues with this same error being posted over the
> last 2 months. Only now I'm using python2.4 so it's come to my
> immediate attention. I know Dischi mentioned in one post that he had
> done a hack for ioctl in 2.0. Now the question is is it too much work
> to patch up 1.5.3 should I try to revert to python2.4 or maybe try
> freevo2.0? I've just set up my new box with a G400 and PVR-150 so I
> really want to get this resolved quickly but in the long term support
> for python2.4 is probably a must even for the 1.5 series.

Maybe there is good solution, mine is only a hack. I added the
follwoing function to Freevo 2.0

def ioctl(fd, code, *args, **kargs):
    if code > sys.maxint:
        code = int(~(-code % sys.maxint) - 1)
    return fcntl.ioctl(fd, code, *args, **kargs)

Every ioctl in Freevo doesn't use the fcntl.ioctl directly, I use the
wrapper every time.

It seems to work. So If someone adds this function to util and
replaces all ioctl usage, it should work. A patch is welcome (I don't
use 2.4 so I have no idea if it works).

I guess we need a 1.5.4 that works on Python 2.4. Can someone help me
here? I'm very busy with CVS Freevo and would prefer someone else
sending patches for this.


Dischi

-- 
Your mouse has moved.   Windows NT must be restarted for the
change to take effect.   Reboot now?  [ OK ]

Attachment: pgpKU7QHLvAvS.pgp
Description: PGP signature

Reply via email to