[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Locking of serial devices and devfs



Previously Russell Coker wrote:
> True.  The current code is provably broken in the case of sym-links.  
> /dev/modem is a very common sym-link.  The current ppp code will create 
> LCK..modem for opening /dev/modem and LCK..ttyS0 for opening /dev/ttyS0, 
> if /dev/modem is a sym-link to /dev/ttyS0 then you're stuffed.

LSB dictates you have to dereference symlink and use the real device
for the lock.

Wichert.

-- 
  _________________________________________________________________
 /       Nothing is fool-proof to a sufficiently talented fool     \
| wichert@wiggy.net                   http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |



Reply to: