public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* /dev/ttyS and locks
@ 2004-05-08  7:48 Nicolai Kuntze
  2004-05-08 10:40 ` Claudia Neumann
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolai Kuntze @ 2004-05-08  7:48 UTC (permalink / raw)
  To: linux-msdos

Hi,

is it possible to do some kind of  dynamic locking of the serial port? I have about 10 users and all of them need from time to time access to a modem attached to the serial port. I am thinking of a little DOS programm to turn the lock on and of so everyone has the abbility to use the port.

Yours,

Nicolai


---- 
Diese Nachricht wurde auf Viren und andere gefaehrliche Inhalte sowie Spam untersucht.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: /dev/ttyS and locks
  2004-05-08  7:48 /dev/ttyS and locks Nicolai Kuntze
@ 2004-05-08 10:40 ` Claudia Neumann
  0 siblings, 0 replies; 2+ messages in thread
From: Claudia Neumann @ 2004-05-08 10:40 UTC (permalink / raw)
  To: Nicolai Kuntze; +Cc: DOSemu Mailingliste

Hi Nicolai!

Am Samstag, 8. Mai 2004 09:48 schrieb Nicolai Kuntze:
> is it possible to do some kind of  dynamic locking of the serial port? I
> have about 10 users and all of them need from time to time access to a
> modem attached to the serial port. I am thinking of a little DOS programm
> to turn the lock on and of so everyone has the abbility to use the port.

I solved a similar problem by installing a conf-File for each user. The user 
has to load DOSemu with "xdosemu -f $HOME/your_conf_file". In this conf-Files 
I redirect the lock-Files to different directories. This is possible because 
my DOS program reads from a card reading device at /dev/ttyS0 and uses it 
only for a short time. Locking for me is not really necessary. 

With this configuration I can read from the card reading device from several 
DOSemu sessions. But it can take up to 3 efforts until the program has 
retrieved the data. 

Hope that helps

Claudia

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-08 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-08  7:48 /dev/ttyS and locks Nicolai Kuntze
2004-05-08 10:40 ` Claudia Neumann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox