STINNER Victor added the comment:
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")
---
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23648>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com