Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!unisoft!dual!ucbvax!ucdavis!samira!mike From: mike@samira.UUCP (Mike Deutsch) Newsgroups: comp.unix.questions,comp.unix.xenix,comp.lang.c Subject: XENIX <-> ULTRIX interrupts & traps Message-ID: <43@samira.UUCP> Date: Mon, 10-Nov-86 03:47:14 EST Article-I.D.: samira.43 Posted: Mon Nov 10 03:47:14 1986 Date-Received: Tue, 11-Nov-86 06:22:02 EST Distribution: net Organization: The Klingon Empire Lines: 22 Xref: mnetor comp.unix.questions:6 comp.unix.xenix:1 comp.lang.c:6 I have a program written in C which I need to run under both ULTRIX 1.2 on an 8600 and Microsoft sys V XENIX on an IBM AT. In the application, the user enters commands from the keyboard. I trap interrupts, and go to an interrupt handler when they hit interrupt. In this handler, I ask the user if they wish to continue or abort. Under XENIX, when the program returns from the interrupt handler, the program doesn't still expect to be reading at the read where the interrupt trap was received. Under ULTRIX, it does. 1) Which one is correct? It's the same code, both C, so one must be wrong. 2) I'd prefer the program to function as it does under XENIX. How can I get it to not continue with the read when there was an interrupt during the read? Thank you very much. Please e-mail me the answer, as our net connection remains slightly shaky.