[comp.os.vms] Disabling Control-Y for a spawned subprocess

PJS@naif.JPL.NASA.GOV (Peter Scott) (05/27/88)

>Kevin Cole at Gallaudet U. Washington DC 
><CADS_COLE%GALLUA.BITNET@CUNYVM.CUNY.EDU>] says:

>Lastly, I keep trying to add LIB$DISABLE_CTRL (I think I spelled that right)
>into the FORTRAN program.  I don't want the parent's Control-Y's and -C's to
>interrupt the spawned process.  (I tried SPAWN/INPUT=NL: but it seemed unhappy
>with that.)  Am I misunderstanding how LIB$DISABLE_CTRL functions? 

Since subprocesses inherit the context of the parent, I solve this with

	$ SET NOCONTROL=(Y)
	$ SPAWN/NOWAIT thing
	$ SET CONTROL=(Y)

You can also use (T,Y) instead of (Y) to make sure that the subprocess doesn't
repond when you type ^T.

Peter Scott (pjs%grouch@jpl-mil.jpl.nasa.gov)