i hate my kbd. Real fix

This commit is contained in:
benoitc 2011-05-03 12:05:22 +02:00
parent a65bf395ae
commit 4ecc1441b9

View File

@ -45,6 +45,7 @@ def sendfile(fdout, fdin, offset, nbytes):
_sendfile.argtypes = [ctypes.c_int, ctypes.c_int, ctypes.c_uint64,
ctypes.c_uint64, ctypes.c_voidp,
ctypes.POINTER(ctypes.c_uint64), ctypes.c_int]
_sbytes = ctypes.c_uint64()
result = _sendfile(fdin, fdout, offset, nbytes, None, _sbytes, 0)
if result == -1:
e = ctypes.get_errno()