mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||