As this has been asked quite frequently during the last days:
If you have any floppy related problems (eg. dosemu locks up while
accessing it or you cannot boot from it or whatever), please
apply the patch below (will be integrated in 0.98.7).
Note that the patch I posted in the thread
"floppy A: B:, vbootfloppy and 0.98.6"
was broken; use this one instead.
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);
}
}