mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
e6ff15b27e
commit
76ea19790f
2 files changed
+8
No files matched your search
@@ -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);
|
||||
}
|
||||