login
Header Space

 
 

Re: Signals are screwing up my tty reads.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Date: Tuesday, August 4, 1992 - 3:27 pm

In article <BsGKE1.Cp@Nyongwa.CAM.ORG> steve@Nyongwa.CAM.ORG (Steve M. Robbins) writes:

Sorry - it's a kernel bug that probably creapt in in 0.96c or so. Here
is a easy fix that should clear it up (I hope - untested as usual):

in linux/kernel/chr_drv/tty_io.c: function read_chan()

        else if (L_CANON(tty))
                wait_for_canon_input(tty);

should read:

        else if (L_CANON(tty)) {
                wait_for_canon_input(tty);
                if (current->signal & ~current->blocked)
                        return -ERESTARTSYS;
        }

The same bug exists in 0.97 (but no longer in my version).

I'd like to hear if the above clears up the problem.

                Linus
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Signals are screwing up my tty reads., Linus Benedict Torvalds, (Tue Aug 4, 3:27 pm)
speck-geostationary