@@ -132,6 +132,7 @@ syslog_get_argv(void)
132
132
133
133
134
134
/*[clinic input]
135
+ @critical_section
135
136
syslog.openlog
136
137
137
138
ident: unicode = NULL
@@ -144,7 +145,7 @@ Set logging options of subsequent syslog() calls.
144
145
static PyObject *
145
146
syslog_openlog_impl (PyObject * module , PyObject * ident , long logopt ,
146
147
long facility )
147
- /*[clinic end generated code: output=5476c12829b6eb75 input=8a987a96a586eee7 ]*/
148
+ /*[clinic end generated code: output=5476c12829b6eb75 input=ee700b8786f81c23 ]*/
148
149
{
149
150
// Since the sys.openlog changes the process level state of syslog library,
150
151
// this operation is only allowed for the main interpreter.
@@ -189,6 +190,7 @@ syslog_openlog_impl(PyObject *module, PyObject *ident, long logopt,
189
190
190
191
191
192
/*[clinic input]
193
+ @critical_section
192
194
syslog.syslog
193
195
194
196
[
@@ -205,7 +207,7 @@ Send the string message to the system logger.
205
207
static PyObject *
206
208
syslog_syslog_impl (PyObject * module , int group_left_1 , int priority ,
207
209
const char * message )
208
- /*[clinic end generated code: output=c3dbc73445a0e078 input=ac83d92b12ea3d4e ]*/
210
+ /*[clinic end generated code: output=c3dbc73445a0e078 input=6588ddb0b113af8e ]*/
209
211
{
210
212
if (PySys_Audit ("syslog.syslog" , "is" , priority , message ) < 0 ) {
211
213
return NULL ;
@@ -243,14 +245,15 @@ syslog_syslog_impl(PyObject *module, int group_left_1, int priority,
243
245
244
246
245
247
/*[clinic input]
248
+ @critical_section
246
249
syslog.closelog
247
250
248
251
Reset the syslog module values and call the system library closelog().
249
252
[clinic start generated code]*/
250
253
251
254
static PyObject *
252
255
syslog_closelog_impl (PyObject * module )
253
- /*[clinic end generated code: output=97890a80a24b1b84 input=fb77a54d447acf07 ]*/
256
+ /*[clinic end generated code: output=97890a80a24b1b84 input=167f489868bd5a72 ]*/
254
257
{
255
258
// Since the sys.closelog changes the process level state of syslog library,
256
259
// this operation is only allowed for the main interpreter.
0 commit comments