From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claudia Neumann Subject: Re: /dev/ttyS and locks Date: Sat, 8 May 2004 12:40:04 +0200 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <200405081240.04331.dr.claudia.neumann@gmx.de> References: <4746213.1084002530837.SLOX.WebMail.wwwrun@linux.hubrich.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-Reply-To: <4746213.1084002530837.SLOX.WebMail.wwwrun@linux.hubrich.org> List-Id: Content-Type: text/plain; charset="us-ascii" 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