From owner-freebsd-questions Fri Aug 23 14:45:07 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA16491 for questions-outgoing; Fri, 23 Aug 1996 14:45:07 -0700 (PDT) Received: from eamail1.unisys.com (eamail1.unisys.com [192.61.103.80]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA16473 for ; Fri, 23 Aug 1996 14:45:01 -0700 (PDT) Received: from ih85.ea.unisys.com (ih85.ea.unisys.com [192.61.103.85]) by eamail1.unisys.com (8.7.3/8.6.12) with ESMTP id VAA27513 for ; Fri, 23 Aug 1996 21:16:29 GMT Received: from po5.cp.unisys.com (cpo5smtp.ea.unisys.com [192.61.144.21]) by ih85.ea.unisys.com (8.7.3/8.7.3) with SMTP id VAA12348 for ; Fri, 23 Aug 1996 21:14:43 GMT Received: by po5.cp.unisys.com with Microsoft Mail id <321E20FC@po5.cp.unisys.com>; Fri, 23 Aug 96 21:22:04 GMT From: "Kumar, Rao CO" To: "questions@freebsd.org" Subject: Help! Date: Fri, 23 Aug 96 16:10:00 GMT Message-ID: <321E20FC@po5.cp.unisys.com> Encoding: 26 TEXT X-Mailer: Microsoft Mail V3.0 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello Thanks in advance for your time. I saw your mail id on the Internet. So I am sending you this mail and would highly appreciate your help. I have written a TSR (that runs on MS DOS 6.2) that intercepts the interrupt 1C (timer interrupt). What I am trying to do in this interrupt handler is some file i/o (using fopen, fread and fclose of Microsoft C). At times the system hangs. I thought it was due to some conflict in simultaneous handling of interrupt 21h by the file i/o calls inside my routine and the foreground application. So I tried to do a check for the InDOS flag before proceeding with my interrupt handling routine, but this flag is always 1 when my interrupt routine is invoked (even when there is no front end application). My questions are : 1. Why the InDOS flag is always 1 when my interrupt routine is invoked ? (my routine handles the interrupt 1C) 2. Is there any other way to know if MS DOS is executing a 21h interrput ? Thanks again. Kumar