Patch #1957: syslogmodule: Release GIL when calling syslog(3)
This commit is contained in:
parent
c5f05e45cf
commit
f0476e8169
|
@ -1193,6 +1193,8 @@ Library
|
|||
Extension Modules
|
||||
-----------------
|
||||
|
||||
- Patch #1957: syslogmodule: Release GIL when calling syslog(3)
|
||||
|
||||
- #2112: mmap.error is now a subclass of EnvironmentError and not a
|
||||
direct EnvironmentError
|
||||
|
||||
|
|
|
@ -92,7 +92,9 @@ syslog_syslog(PyObject * self, PyObject * args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS;
|
||||
syslog(priority, "%s", message);
|
||||
Py_END_ALLOW_THREADS;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue