bitkeeper revision 1.1159.79.5 (414eb5ccBh7RW8Eo9mCc8WaCqLx0Kg)

Ensure we get output from C extensions via stdout/stderr, by disabling
default stream buffering.
This commit is contained in:
kaf24@freefall.cl.cam.ac.uk committed 2004-09-20 10:49:48 +00:00
1 parent e6ff15b27e
commit 76ea19790f
2 files changed
+8

No files matched your search

+4
View File
@@ -1320,4 +1320,8 @@ PyMODINIT_FUNC initxc(void)
PyDict_SetItemString(d, "error", xc_error);
zero = PyInt_FromLong(0);
/* KAF: This ensures that we get debug output in a timely manner. */
setbuf(stdout, NULL);
setbuf(stderr, NULL);
}
+4
View File
@@ -1438,4 +1438,8 @@ PyMODINIT_FUNC initxu(void)
d = PyModule_GetDict(m);
port_error = PyErr_NewException(XENPKG ".PortError", NULL, NULL);
PyDict_SetItemString(d, "PortError", port_error);
/* KAF: This ensures that we get debug output in a timely manner. */
setbuf(stdout, NULL);
setbuf(stderr, NULL);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.