Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utcsri.UUCP Path: utzoo!utcsri!gclark From: gclark@utcsri.UUCP (Graeme Clark) Newsgroups: net.micro.amiga Subject: Questions on Execute and device assignment Message-ID: <2933@utcsri.UUCP> Date: Fri, 6-Jun-86 19:59:27 EDT Article-I.D.: utcsri.2933 Posted: Fri Jun 6 19:59:27 1986 Date-Received: Fri, 6-Jun-86 20:47:42 EDT Reply-To: gclark@utcsri.UUCP (Graeme Clark) Distribution: net Organization: CSRI, University of Toronto Lines: 24 Summary: Two questions: 1. When a program A runs another program B using the Execute call, how can I arrange things so that B can be interrupted by a ^C or ^D? Specifically, A is a shell I am working on, and B is a program, such as the "type" program which comes with the system, which normally stops when a ^C is typed. However, when B is invoked from A using the call Execute("type foo.txt", 0, 0); hitting a ^C does not terminate the type command. A performs its I/O using the Lattice C library standard I/O; it doesn't open any windows of its own. 2. How can I change the assignments of logical devices from a C program? Do I use the DevInfo structure in the DOS global data structure? The DOS manual says I should not use these structures, as they are subject to change. If I do have to modify the DevInfo list, do I need to surround the accesses with Forbid() and Permit() calls to prevent other tasks examining/changing the list while I am modifying it? Graeme Clark -- Dept. of Computer Science, Univ. of Toronto, Canada M5S 1A4 {allegra,cornell,decvax,ihnp4,linus,utzoo}!utcsri!gclark