Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!vrdxhq!baskin!wmk From: wmk@baskin.UUCP Newsgroups: comp.unix.questions Subject: Shell doesn't pass modified signal mask to sub-processes Message-ID: <319@baskin.UUCP> Date: Tue, 7-Apr-87 09:51:59 EST Article-I.D.: baskin.319 Posted: Tue Apr 7 09:51:59 1987 Date-Received: Sat, 11-Apr-87 06:18:51 EST Sender: root@baskin.UUCP Organization: Digital Analysis Corporation Lines: 21 Keywords: ...and I want it to! Is there a work-around? I've "discovered," much to my dismay, that the Bourne shell does not let me pass the modified signal mask to the sub-processes it spawns; it only passes the original one. (We have a Gould 6040 running UTX/32 1.2, a BSD 4.2 system with a little Sys V.) The situation is: I run a C program that sets the signal mask to ignore interrupt and quit signals. It then calls a /bin/sh script. Within that script I reset the mask (i.e., trap 2 3) and then call another C program. The mask being passed to that program still ignores SIGINT and SIGQUIT. My problem is that _I want to do this_! Is there a way to do this from within the shell script? We could call a second C program which would reset the mask and _then_ call our programs, but this seems inelegant. Are there any better ways? Thanks in advance, -- Bill Kules "We're on the road ...seismo!vrdxhq!baskin!wmk and we're gunning for the Buddha" ...decuac!baskin!wmk -- Shriekback