• Alan Cox's avatar
    [PATCH] redo the n_tty fix · f7371879
    Alan Cox authored
    Two problems with the original change
    
    1. We should return bytes actually processed on an error according to
    SuS/POSIX. Technically the EFAULT path is outside the spec but its best
    we follow
    
    2. We need to fix most of this anyway because the final section of the
    change was wrong. If retval was set we retried and got an efault again
    in some cases
    
    I think this way of doing it is right but it could do with further
    review
    f7371879
n_tty.c 30.1 KB