diff Modules/syslogmodule.c @ 45469:47a58ca3e10e legacy-trunk

Patch #1957: syslogmodule: Release GIL when calling syslog(3)
author Christian Heimes <christian@cheimes.de>
date Sat, 23 Feb 2008 17:42:31 +0000
parents 3fe3ccdf0155
children 4fe192d48960
line wrap: on
line diff
--- a/Modules/syslogmodule.c	Sat Feb 23 17:40:11 2008 +0000
+++ b/Modules/syslogmodule.c	Sat Feb 23 17:42:31 2008 +0000
@@ -92,7 +92,9 @@
 			return NULL;
 	}
 
+	Py_BEGIN_ALLOW_THREADS;
 	syslog(priority, "%s", message);
+	Py_END_ALLOW_THREADS;
 	Py_INCREF(Py_None);
 	return Py_None;
 }