Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2016 20:46:38 +0100
From:      "Andrew Wood" <andrewjameswood@ymail.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Shell script ignoring / blocking signals
Message-ID:  <000b01d1ad50$2a928790$7fb796b0$@ymail.com>

next in thread | raw e-mail | index | archive | help
I have a shell script Ive written for running under the Bourne Shell
(/bin/sh) which sets up some signal handlers for SIGINT, SIGQUIT & SIGTERM.

 

If I run the script directly everything works fine, but if the script is run
from inside another shell script the signals are blocked (set to ignore) as
indicated by procstat.

 

Can someone please explain to me why this is happening and how I unblock
them?

 

Regards

Andrew




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01d1ad50$2a928790$7fb796b0$>