projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: no sighandlers on Windows
[babeltrace.git]
/
python-plugin-provider
/
python-plugin-provider.c
diff --git
a/python-plugin-provider/python-plugin-provider.c
b/python-plugin-provider/python-plugin-provider.c
index 2404fc7acbdb434064758faa51b88ec2231dd488..9044d8a23f1ed373e1eb343438710e30d0caf637 100644
(file)
--- a/
python-plugin-provider/python-plugin-provider.c
+++ b/
python-plugin-provider/python-plugin-provider.c
@@
-81,7
+81,9
@@
void init_python(void)
{
PyObject *py_bt2_py_plugin_mod = NULL;
const char *dis_python_env;
{
PyObject *py_bt2_py_plugin_mod = NULL;
const char *dis_python_env;
+#ifndef __MINGW32__
sighandler_t old_sigint = signal(SIGINT, SIG_DFL);
sighandler_t old_sigint = signal(SIGINT, SIG_DFL);
+#endif
if (python_state != PYTHON_STATE_NOT_INITED) {
goto end;
if (python_state != PYTHON_STATE_NOT_INITED) {
goto end;
@@
-128,9
+130,11
@@
void init_python(void)
python_state = PYTHON_STATE_FULLY_INITIALIZED;
end:
python_state = PYTHON_STATE_FULLY_INITIALIZED;
end:
+#ifndef __MINGW32__
if (old_sigint != SIG_ERR) {
(void) signal(SIGINT, old_sigint);
}
if (old_sigint != SIG_ERR) {
(void) signal(SIGINT, old_sigint);
}
+#endif
print_python_traceback_warn();
pyerr_clear();
print_python_traceback_warn();
pyerr_clear();
This page took
0.038219 seconds
and
4
git commands to generate.