Message238355
| Author |
vstinner |
| Recipients |
neologix, vstinner |
| Date |
2015年03月17日.22:39:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1426631999.28.0.46890189366.issue23648@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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")
--- |
|
History
|
|---|
| 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 |
|