Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!decvax!ucbvax!ucdavis!lll-crg!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.unix Subject: Re: Can a trap survive an exec /bin/sh? Message-ID: <1533@brl-tgr.ARPA> Date: Mon, 16-Sep-85 17:06:30 EDT Article-I.D.: brl-tgr.1533 Posted: Mon Sep 16 17:06:30 1985 Date-Received: Tue, 17-Sep-85 22:13:45 EDT References: <668@ihu1h.UUCP> Distribution: na Organization: Ballistic Research Lab Lines: 8 > Is there a way to get a trap to survive the exec of the shell? > What I want to do is set a trap, exec a shell, continue on with > an interactive session in the exec'ed shell, and have the trap > turned on in the exec'ed shell. Nope, any signal handler other than SIG_DFL or SIG_IGN is reset to SIG_DFL by an exec. You'll have to set up the signal handler inside the exec'ed shell. Brought to you by Super Global Mega Corp .com