From owner-freebsd-questions@freebsd.org Fri May 13 19:49:08 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DFB4B3A853 for ; Fri, 13 May 2016 19:49:08 +0000 (UTC) (envelope-from andrewjameswood@ymail.com) Received: from nm13-vm7.bullet.mail.ir2.yahoo.com (nm13-vm7.bullet.mail.ir2.yahoo.com [212.82.96.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8D0991967 for ; Fri, 13 May 2016 19:49:06 +0000 (UTC) (envelope-from andrewjameswood@ymail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1463168799; bh=e5cstfmZE8yIsqBn780ugj0XKQy4MDa4/C0IVpkUMnE=; h=From:To:Subject:Date:From:Subject; b=VwjD/9jv+hxd/UPUC1qxo2SRf/ueYSswuZ406sEl1fWaULAo21Y+/v2XQ4s+e+kYXe7yl46g8QZhNFCwBjcX7h+eDNe7I/wGwBSdbt6Lxx37IEYzeDUcNEqqe/vaeH0ZZZchZPZpRSZsQrSytWkSDEGcL4aLM+oBcOz0RZ4Y1vW+6gjBdHt1+sSKzmYuKdfP4VQrT99GNAUH91BY4/bFvVnQDRfxdyMXEqPBfC/0FUblOpH0jdoNr7jA3OfSwngoLNoinUxFANm/oLFVKWsyyX+3Zlp7HThlCDVqGGFPb2ckL6bj7vsCWA2orHctRXOGA2J/SZJYMW6Kdcz2ENf8CA== Received: from [212.82.98.59] by nm13.bullet.mail.ir2.yahoo.com with NNFMP; 13 May 2016 19:46:39 -0000 Received: from [46.228.39.99] by tm12.bullet.mail.ir2.yahoo.com with NNFMP; 13 May 2016 19:46:39 -0000 Received: from [127.0.0.1] by smtp136.mail.ir2.yahoo.com with NNFMP; 13 May 2016 19:46:39 -0000 X-Yahoo-Newman-Id: 851678.23390.bm@smtp136.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: IWjUEYkVM1lqHCb7IuBqdyzLdqha2Z8odShfC2jf7zL8e2w RuMPvOV3DJHXMt3pA5NNaxcDiq_eXfkuXF8.M01l_VjNpkWRq3JwCKYKrhYa Q0d1yTToeVZJJ6UFR3lpz6xaBnaIPiqa53KP0xb9GmXxnmBpjgU.2vI.M3.r llNf9gPwoj_vqenBl_R_gysCPzQldbPrAs.g4ipx0PNC2RVCVWAuw9KHYCck n4BSyMV7FMUJSi8..UoeEQvTK7cBc33UDbPFaO3z0j9E.zGVcUV0taFaXNf8 kTjhcsiCCKaD2IAEaKjSrRRov.6Zmhg4M9BrI2v5kfXJGobkERNEDNiCkr.o su6w29Ztfwvrw6ZSFIEYMNZ3RxXgcScHf9iko6DE5drGaBK2zyIAdrPx7_xH LzafVHo87kmUCLq3I20g6JaNZu2LDNzqnpfzJBvfiyCgu1.R5KKKAm_Zbs_T ijdV7T1gEESqwli9iGhOrdVN0t6uGNaq.RnTogYCThQTEIM6ph0gQZez1zQ0 9hsFkHQ75dA.4mjqZ1teoIbcVCGGM3M4RLK0CkkGIOnBOk5Nm.uVk6FYasLc - X-Yahoo-SMTP: lyMebeuswBAKXlSCZ4_eELrg31ykJBp.BALgvdbr.jksrQi8VqI- From: "Andrew Wood" To: Subject: Shell script ignoring / blocking signals Date: Fri, 13 May 2016 20:46:38 +0100 Message-ID: <000b01d1ad50$2a928790$7fb796b0$@ymail.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdGtT87IXnO4y2rkTgypg4PnVRH0QA== Content-Language: en-gb Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2016 19:49:08 -0000 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