Message238355
In msg196555, Charles-François Natali wrote:
"""
From a cursory look, the main files affected would be:
Modules/fcntlmodule.c
Modules/ossaudiodev.c
Modules/posixmodule.c
Modules/selectmodule.c
Modules/selectmodule.c
Modules/signalmodule.c
Modules/socketmodule.c
Modules/syslogmodule.c
"""
For syslog, I tested the following code and I don't get any InterruptedError. The return type of the C functions openlog(), syslog() and closelog() is void: no result. So I don't see how they could fail because of a signal. Code of my test:
---
import syslog
import signal
hit = 0
def noop(*args):
global hit
hit += 1
signal.signal(signal.SIGALRM, noop)
t = 1e-6
nlog = 10**2
signal.setitimer(signal.ITIMER_REAL, t, t)
for i in range(nlog):
syslog.openlog()
syslog.syslog("test %s")
syslog.closelog()
signal.signal(signal.SIGALRM, signal.SIG_IGN)
print(nlog, "logs")
print(hit, "signals")
--- |
|
Date |
User |
Action |
Args |
2015-03-17 22:39:59 | vstinner | set | recipients:
+ vstinner, neologix |
2015-03-17 22:39:59 | vstinner | set | messageid: <1426631999.28.0.46890189366.issue23648@psf.upfronthosting.co.za> |
2015-03-17 22:39:59 | vstinner | link | issue23648 messages |
2015-03-17 22:39:59 | vstinner | create | |
|