O_DIRECT on stdin?

jepler at unpythonic.net jepler at unpythonic.net
Mon Nov 7 14:53:00 EST 2005


I think this is fcntl(..., F_SETFL, ...), so something like
    import os, fcntl, sys
    flags = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL)	
    flags |= os.O_DIRECT
    fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, flags)

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20051107/e5bd7688/attachment.sig>


More information about the Python-list mailing list