消息 [239905]
Example of test_connect_eintr3.py output on OpenIndiana:
Register SIGINT
Register SIGALRM
Register SIGWINCH
Register SIGTERM
Register SIGCHLD
Send SIGALRM every 200.0 ms
Run func() during 5.0 seconds
Type CTRL+c, resize the window, etc.
______[]____[]_____[******]______[]_______[*****]______[*****]______[]
Test completed in 5.2 sec
func() has been called 7 times
Got 56 signals
Got 16 signals during connect()
Oh, and obviously, test_connect_eintr3.py fails with InterruptedError without the patch. Example on Linux:
Register SIGINT
Register SIGALRM
Register SIGWINCH
Register SIGTERM
Register SIGCHLD
Send SIGALRM every 200.0 ms
Run func() during 5.0 seconds
Type CTRL+c, resize the window, etc.
[]____[]_____[]_____[]____[******Traceback (most recent call last):
File "test_connect_eintr.py", line 97, in <module>
func()
File "test_connect_eintr.py", line 51, in func
client.connect(server_addr)
InterruptedError: [Errno 4] Interrupted system call |
|
| 日期 |
用户 |
动作 |
参数 |
| 2015-04-02 11:37:04 | vstinner | 修改 | recipients:
+ vstinner, pitrou, neologix, python-dev, serhiy.storchaka |
| 2015-04-02 11:37:04 | vstinner | 修改 | messageid: <1427974624.39.0.314328205997.issue23618@psf.upfronthosting.co.za> |
| 2015-04-02 11:37:04 | vstinner | 链接 | issue23618 messages |
| 2015-04-02 11:37:04 | vstinner | 创建 | |
|