Kaydet (Commit) f0476e81 authored tarafından Christian Heimes's avatar Christian Heimes

Patch #1957: syslogmodule: Release GIL when calling syslog(3)

üst c5f05e45
...@@ -1193,6 +1193,8 @@ Library ...@@ -1193,6 +1193,8 @@ Library
Extension Modules Extension Modules
----------------- -----------------
- Patch #1957: syslogmodule: Release GIL when calling syslog(3)
- #2112: mmap.error is now a subclass of EnvironmentError and not a - #2112: mmap.error is now a subclass of EnvironmentError and not a
direct EnvironmentError direct EnvironmentError
......
...@@ -92,7 +92,9 @@ syslog_syslog(PyObject * self, PyObject * args) ...@@ -92,7 +92,9 @@ syslog_syslog(PyObject * self, PyObject * args)
return NULL; return NULL;
} }
Py_BEGIN_ALLOW_THREADS;
syslog(priority, "%s", message); syslog(priority, "%s", message);
Py_END_ALLOW_THREADS;
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment