#: 19704 S12/OS9/68000 (OSK)
12-Feb-94 22:13:45
Sb: Screen Fix
Fm: Bob van der Poel 76510,2203
To: All
To aid in the on-going problem with some folks running the SCREEN package I
posted awhile ago, I had a look at a problem which was causing my system to
lock from time to time...specifically when I sent a XOFF from the keyboard. The
problem is in the main file, screen.c, in the function my_gs_rdy(). The ptyman
returns a -1 when no keys are ready (as per OS9 requirements). And when screen
sees this, it stops, assuming an error. Following is a replacement for the
offending module. Hope it helps...
my_gs_rdy(path) {
int i;
i=_gs_rdy(path);
if(i<0)
{
/* I added the test for a 246 (not rdy) here. OS9 will returns
a -1 to _gs_rdy() if there are no chars avaiable on the
input path...not a fatal error! [bvdp]
*/
if(errno!=246)
{
Msg(0, "Got %d [err %d] from a _gs_rdy()",i,errno);
while(1); /* not sure if this is best.... */
}
i=0;
}
return i; }
Feel free to re-distribute this.
|