lkml.org 
[lkml]   [1998]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.044 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site