Artifacts Associated With Ticket 218076
Ticket change [15e57686be] (rid 124640) by nobody on 2000-10-26 00:52:54:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1631 Bug Version: 8.0.3 SubmitDate: '1999-03-25' LastModified: '2000-10-25' Severity: SER Status: Closed Submitter: pat OS: HP-UX OSVersion: 10.2 Machine: Other FixedDate: '2000-10-25' FixedInVersion: NA ClosedDate: '1999-04-19' Name: Willi Lohmann CVS: tclIO.c 1.244 96/11/12 14:47:28 Extensions: none CustomShell: Have redefined the following to add a couple of args (they just call the real version after checking for the additional args - no actual new functionality): ReproducibleScript: Reproducing this is hit or miss. I have applications that seemingly do the same thing, but one works and one fails. Its extremely dependent on the user's os environment and how many interrupts are occuring. Sorry (but I have the fix). ObservedBehavior: Within GetInput's while (1) loop, one of the possible read errno values is EINTR. This means some system interrupt interrupted the io operation. Nothing bad happened and the io needs to be continued. But its currently being treated as a hard io error. When running with a lot of interrupts (like itimers to do ui updates) this happens all the time on some os's (like hpux) when a tcl exec command is executed and return data is being read. I have heard from someone who has seen this on solaris also. DesiredBehavior: I want to see exec not return a "interrupted system call" error. Patch: Simply changing this line in GetInput(): if ((result == EWOULDBLOCK) || (result == EAGAIN)) { to if ((result == EWOULDBLOCK) || (result == EAGAIN) || (result == EINTR)) { seems to fix the problem. PatchFiles: tckIO.c 4/19/99 - redman - Not a bug. The code should specifically NOT check for EINTR to allow programs to handle and deal with it correctly. - foundin initialized to: "obsolete: 8.0.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "GetInput() doesn't allow for result=EINTR"
- type initialized to: "Bug"
Ticket change [bf6b3a0f4d] (rid 102250) by welch on 2000-10-26 08:14:45:
- closedate changed to: "2000-10-26T01:14:45"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [6c2fbe0d84] (rid 128456) by bluemoon on 2000-11-29 04:13:53:
- icomment:
Umm... there isn't any way that a program can restart the underlying read() call within the Tcl IO routines. Even if an interrupt handler catches the interrupt, what can it do to cause Tcl to not report an error and restart the read?
- login: "bluemoon"
- mimetype: "text/plain"
- username: "bluemoon"
- icomment:
Ticket change [7575936aa3] (rid 105391) by dgp on 2001-04-16 22:53:51:
- closedate changed to: "2001-04-16T15:53:51"
- closer changed to: "dgp"
- subsystem changed to: "25. Channel System"