Overview
| Artifact ID: | 5c27b667d8a6c37dccfa8cc71feb1ed35b8d0a72 |
|---|---|
| Ticket: | 1960647fffffffffffffffffffffffffffffffff
Add ability to use poll() in TclUnixWaitForFile() |
| User & Date: | nobody on 2008-06-15 12:52:57 |
Changes
- icomment:
Logged In: NO Some notes: (1) TclUnixWaitForFile() is only used in one place in the core proper, namely WaitForConnect(). (2) In WaitForConnect(), the "timeout" parameter is always either '0' (do not wait) or -1 (wait forever). So TclUnixWaitForFile() is much more complicated than it needs to be -- it doesn't need the "mini-event loop" or all the timeout processing at all. (3) WaitForConnect() and the TCP_ASYNC_SOCKET/TCP_ASYNC_CONNECT logic is also more complicated than it needs to be (and might not be necessary at all). (4) TclUnixWaitForFile() is also used in the test suite, this time with timeout values > 0. Whether the test suite is calling it simply to test TclUnixWaitForFile() itself or if it's needed to test something "real", I was not able to determine. (5) TclUnixWaitForFile also appears in the internal stubs table. Whether there are any callers outside of the core is difficult to determine.
- login: "[email protected]"
- mimetype: "text/plain"
- username: "[email protected]"