RE: [PARPORT] lp locks with three devs on parport

Tim Waugh (
Mon, 13 Jul 1998 16:40:06 +0100

> I looked at the code and found this: port->waittail isn't updated when
> the second device is added to the waitlist. This would also explain,
> why it only happens with three devices.

Aha! Thanks a lot for finding this! Here's a pseudo-patch:

           /* First add ourselves to the end of the wait list. */
           dev->waitnext = NULL;
           dev->waitprev = port->waittail;
           if (port->waittail)
              port->waittail->waitnext = dev;
+ port->waittail = dev;
           else {
              port->waithead = dev->port->waittail = dev;


Tim Waugh
Matra Systems (UK) Ltd		

Home Farm, Leigh Road, Eastleigh SO50 9EU. Reg in Cardiff: 2642797

-- To unsubscribe, send mail to: -- -- with the single word "unsubscribe" in the body of the message. --

This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:57 EST