Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* Dosemu 0.49 keyboard inrerrupt bug fix
@ 1993-11-18 11:41 Ronnie Sahlberg
  0 siblings, 0 replies; only message in thread
From: Ronnie Sahlberg @ 1993-11-18 11:41 UTC (permalink / 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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-11-18 11:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-18 11:41 Dosemu 0.49 keyboard inrerrupt bug fix Ronnie Sahlberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox