From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Charlton Subject: Re: file lock() and share.exe Date: Sun, 21 Sep 2003 12:10:38 -0400 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <200309211210.38416.j.d.charlton@ieee.org> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: Bart Oldeman Cc: linux-msdos@vger.kernel.org On Saturday 20 September 2003 20:14, Bart Oldeman wrote: > On Sat, 20 Sep 2003, John Charlton wrote: > > void chkkbd(void) > > { > > int ch; > > char str[80]; > > > > fprintf(stderr, "Hit enter to continue, s to stop, q to quit > > immediately..."); > > fgets(str, 80, stdin); > > fputs(str, stderr); > > ch = str[0]; > > if (ch == 's' || ch == 'S') { > > bStop = TRUE; > > } > > if (ch == 'q' || ch == 'Q') { > > bQuit = TRUE; > > } > > } > > > > It is a pretty basic function. I did use getchar() at first, with the > > same result. This function works as intended with kernel 1.1.26a (2026a) > > or in linux. With kernel 2031 it behaves as described above and if you > > rerun the same program it crashes the dosemu session. > > > > Is there an earlier kernel I can use to solve the share/lock issue and > > not introduce this stdin problem? > > your problem looks like it might have been fixed in the upcoming kernel > 2032. Please try and test http://freedos.sourceforge.net/kernel/kernel.zip > > Bart Yes the stdin problem is corrected in the 2032 kernel.sys. Thank you. --John