Re: file lock() and share.exe

John Charlton
2003-09-21T16:10:38Z

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