消息 [237666]
> http://www.madore.org/~david/computers/connect-intr.html
This article contains a program connect_test.c to test how connect() behaves on EINTR. Since it's in the public domain, I attached a copy.
The program contains the comment: "All systems function as expected when TEST_TWO is set."
If TEST_TWO is defined, poll() is used to wait until the socket is writable, and then getsockopt(SO_ERROR) is used to check if the error is now zero, when connect() fails with EINTR. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2015-03-09 15:43:24 | vstinner | 修改 | recipients:
+ vstinner, pitrou, neologix, serhiy.storchaka |
| 2015-03-09 15:43:24 | vstinner | 修改 | messageid: <1425915804.92.0.124670076416.issue23618@psf.upfronthosting.co.za> |
| 2015-03-09 15:43:24 | vstinner | 链接 | issue23618 messages |
| 2015-03-09 15:43:24 | vstinner | 创建 | |
|