Skip to content
Tcl Source Code Check-in [defcffd4a1]
Login

Check-in [defcffd4a1]

Overview
Comment: * The changes below fix [Bug #462317] where Expect tried to read more than was in the buffers and then blocked in the OS call as its pty channel driver provides no blockmodeproc through which the OS could be notified of blocking-behaviour. Because of this the general I/O core has to take more care than usual to preserve the semantics of non-blocking channels. * generic/tclIO.c (Tcl_ReadRaw): Do not read from the driver if the channel is non-blocking and the fileevent causing the read was generated by a timer. We do not know if there is data available from the OS. Instead of going to the OS for more and potentially blocking we simply signal EWOULDBLOCK to the higher levels to cause the system to wait for true fileevents. (GetInput): Same as before. (ChannelTimerProc): Added set and clear of CHANNEL_TIMER_FEV. * generic/tclIO.h (CHANNEL_TIMER_FEV): New flag for channels. Is set if a fileevent was generated by a timer, the channel is not blocking and the driver did not provide a blockmodeproc. In that case the I/O core has to be especially careful about going to the driver for more data.
Timelines: family | ancestors | descendants | both | core-8-3-1-branch
Files: files | file ages | folders
SHA1: defcffd4a14645d49f97f7a90dd9ed4a867d8621
User & Date: andreas_kupries on 2001-09-27 02:26:42.000
Other Links: branch diff | manifest | tags
Context
2001-09-28
02:26
* generic/tclIO.c (ChannelTimerProc): Added Tcl_Preserve() and Tcl_Release() to fix... check-in: 3828b00948 user: dgp tags: core-8-3-1-branch
2001-09-27
02:26
* The changes below fix [Bug #462317] where Expect tried to read more than was in the buffers a... check-in: defcffd4a1 user: andreas_kupries tags: core-8-3-1-branch
2001-09-24
17:54
* The change below fixes [Bug #464380]. The bug was reported by Ronnie Brunner <rbrunner@users.... check-in: 5ceb426076 user: andreas_kupries tags: core-8-3-1-branch
Changes