python, OS X, and fcntl

Johann Hibschman johann at physics.berkeley.edu
Mon Mar 26 21:56:11 CEST 2001


Hi folks,

I'm having trouble with the fcntl module under Mac OS X.  It
sounds like this is an old problem that has resurfaced, since I can
only find references to it in 1999 archives about OS X Server.
Is there a known workaround?

I get, while running test_fcntl:

Status from fnctl with O_NONBLOCK:  0
struct.pack:  '\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Traceback (most recent call last):
  File "test_fcntl.py", line 31, in ?
    rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETLKW, lockdata)

Any hints?

-- 
Johann Hibschman                           johann at physics.berkeley.edu



More information about the Python-list mailing list