From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,42725e63d036361d,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-11-18 05:13:16 PST Path: gmd.de!xlink.net!howland.reston.ans.net!EU.net!news.funet.fi!klaava!klaava!not-for-mail From: ronnie@lysator.liu.se (Ronnie Sahlberg) Newsgroups: comp.os.linux.announce Subject: Dosemu 0.49 keyboard inrerrupt bug fix Followup-To: comp.os.linux.misc Date: 18 Nov 1993 13:41:59 +0200 Organization: Lysator Academic Computer Society Sender: wirzeniu@klaava.Helsinki.FI Message-ID: <2cfn27$o8c@klaava.Helsinki.FI> NNTP-Posting-Host: klaava.helsinki.fi Summary: fix for a bug in dosemu0.49 Keywords: dosemu, bugfix 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.