Hi Bernhard,
> I have problems with Dosemu (version 0.98.6, suse linux 6.0, kernel
> 2.2.5). After starting dosemu correctly from a hdimage .first i like to
> change to drive A: (floppy disk).The dosemu does this but after nothing
> goes. I can input via keyboard what I like :nothing happend. also
> ctrl-alt-pgdn or ctrl-alt f1/2.. does not work.The only way to continue
> is a hardware reset!!
> what is the reason? I know that in any earlier versions I had no
Please apply the appended patch (will be integrated in 0.98.7).
Bye,
Steffen
--- dosemu-0.98.6/src/base/misc/utilities.c Fri Mar 26 20:02:54 1999
+++ dosemu-0.98.6/src/base/misc/utilities.c Mon May 17 22:29:35 1999
@@ -506,15 +506,16 @@
void sigalarm_onoff(int on)
{
- static struct itimerval itv_old_;
- static struct itimerval *itv_old = &itv_old_;
+ static struct itimerval itv_old;
static struct itimerval itv;
- if (on) setitimer(TIMER_TIME, itv_old, NULL);
- else {
+ static int is_off = 0;
+ if (on) {
+ if (is_off--) setitimer(TIMER_TIME, &itv_old, NULL);
+ }
+ else if (!is_off++) {
itv.it_interval.tv_sec = itv.it_interval.tv_usec = 0;
itv.it_value = itv.it_interval;
- setitimer(TIMER_TIME, &itv, itv_old);
- itv_old = NULL;
+ setitimer(TIMER_TIME, &itv, &itv_old);
}
}