|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
2.2.13 problem write(2)'ng to Unix98 ptys?
|
Has anyone experienced any intermittent problems write(2)'ng to Unix98
pty's under 2.2.13? It's odd, but continues to pop up at least once a day
or so. My shell appears to freeze, and I ssh back in from another xterm
to find that it's stuck in a sleep state:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
mct 25890 0.0 1.8 1968 1172 pts/2 S 11:43 0:00 -bash
Issuing a trace -p <pid> shows that the process is hung waiting for a
write to finish:
[mct@rivendell/pts/3 ~]$ strace -p 25890
write(2, "[mct@rivendell/pts/2 ~]$ \r[mct@r"..., 51 <unfinished ...>
In this case it's attempting to write my shell prompt.
I've tried echo'ng a line of text to the TTY in an attempt to kick it,
but to no avail:
[mct@rivendell/pts/3 ~]$ strace echo foo > /dev/pts/2
[snip]
write(1, "foo\n", 4 <unfinished ...>
It's very frustrating. Unfortunately, I'm not a kernel hacker, and don't
know how to dig any deeper than the strace output. Does anyone else have
any clues?
Maybe I'll revert back to 2.2.12 :(
-mct
|
|