From: ronnie@lysator.liu.se (Ronnie Sahlberg)
Subject: Dosemu 0.49 keyboard inrerrupt bug fix
Date: 18 Nov 1993 13:41:59 +0200 [thread overview]
Message-ID: <2cfn27$o8c@klaava.Helsinki.FI> (raw)
This is a fix for a bug i founf in dosemu0.49
keyboard interrupt handling code.
the bug only manifested itself on my machine when redirecting all
output to /dev/null, so it took some time to find it.
The bug was that the signal handler didnt handle the case when multiple signals
were generated before the previous signals were processed.
fix: (sorry, no diff-file :-(
In file dosipc.c, at function sigipc()
===================
void sigipc(void)
{
struct ipcpkt pkt;
(add) struct timeval tv;
(add) fd_set fds;
(add)
(add) /*signals dont queue, but packets do*/
(add) do{
I_printf("IPC .....
====================
====================
default:
I_printf("IPC: (par) .....
}
(add) /* if any other packets arrived with the same signal */
(add) FD_ZERO(&fds);
(add) FD_SET(PARENT_FD,&fds);
(add) tv.tv_sec=0;
(add) tv.tv_usec=0;
(add) } while( select(255,&fds,NULL,NULL,&tv)==1 );
}
=====================
with this patch, keyboard interrupts seems to be working excellent for me.
The game Pinball Dreams now works perfectly for me.
Thanks for the truly excellent application dosemu to all that have worked with it.
yours sincerely, ronnie s.
ronnie@lysator.liu.se
--
Mail submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
PLEASE remember Keywords: and a short description of the software.
reply other threads:[~1993-11-18 11:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox