gclark@utcsri.UUCP (Graeme Clark) (06/07/86)
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