Messages in this thread | | | Date | Fri, 4 Dec 1998 08:13:25 -0700 | From | Vern Hoxie <> | Subject | Re: cua* on kernel 2.1 and beyond |
| |
On Thu, 3 Dec 1998, Tymm Twillman wrote:
> ln -s /dev/ttyS0 /dev/cua0
This is bad!
A process using /dev/cua0 will create a lockfile named cua0. Another process wanting to use /dev/ttyS0, will look for a lockfile named ttyS0. When it is not found, that process will go ahead and open ttyS0 and collide with the data being transferred on cua0.
A complex locking routine can be used. See my blurb on lockfiles and a sample routine to creat either dual lockfiles or single ones.
This is available from scicom.alphacdc.com via ftp. The tarball is pub/linux/serial_suite.tgz.
vern
-- Vernon C. Hoxie vern@zebra.alphacdc.com 3975 W. 29th Ave. uucp: 303-455-2670 Denver, Colo., 80212 voice: 303-477-1780 Nothing but the heart can change the heart.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |