Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!seismo!mcnc!unc!bmh From: bmh@unc.UUCP Newsgroups: comp.sys.ibm.pc Subject: help for routine to handle exit conditions Message-ID: <972@unc.unc.UUCP> Date: Thu, 19-Feb-87 16:04:55 EST Article-I.D.: unc.972 Posted: Thu Feb 19 16:04:55 1987 Date-Received: Fri, 20-Feb-87 21:15:49 EST Distribution: na Organization: CS Dept, U. of N. Carolina, Chapel Hill Lines: 23 I'm attempting to write a routine to handle exit conditions for programs to be written for an IBM PC. The conditions I wish to trap and handle in a robust manner include ^C and ^. I am using the Manx Aztec C compiler and was not successful in getting the signal library function to work properly for me when I passed my own routine as a argument rather than using their predefined selections of ignoring or terminating on such conditions. I would be interested in hearing from people who have written routines to do similar things (in Manx C or assembler), and examples would be appreciated. If there is enough interest I will submit a followup summary. Additionally the Manx signal call only allows you to setup a procedure for one time (apparently) as it resets the interrupt to the default terminate meaning once your procedure is called. Does anyone know whether this is because of DOS/PC considerations or simply a limitation of Manx's code? Thanks, Brad Hemminger {...!mcnc!unc!bmh}