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

This commit is contained in:
Christian Heimes 2008-02-23 17:42:31 +00:00
parent c5f05e45cf
commit f0476e8169
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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;
} }