Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1021:bc5a570ba696
Date: 2012-10-30 12:42 +0100
http://bitbucket.org/cffi/cffi/changeset/bc5a570ba696/
Log: Two hours of debugging...
diff --git a/c/file_emulator.h b/c/file_emulator.h
--- a/c/file_emulator.h
+++ b/c/file_emulator.h
@@ -57,6 +57,7 @@
PyErr_SetFromErrno(PyExc_OSError);
goto fail;
}
+ setbuf(f, NULL); /* non-buffered */
Py_DECREF(ob_mode);
ob_mode = NULL;
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit