Author: pierre
Date: Sun Jan 13 00:32:24 2019
New Revision: 4071

Log:
Do not exit on SIGCHLD:
    
With bash 5.0, a SIGCHLD signal is sent whenever a subshell exits. The signal
numbers passed to the trap instruction in jhalfs contain SIGCHLD, and this
new behavior causes jhalfs to exit. Fix this by using names instead of numbers
for the trap, and (of course) not trapping SIGCHLD.

Modified:
   jhalfs/trunk/jhalfs

Modified: jhalfs/trunk/jhalfs
==============================================================================
--- jhalfs/trunk/jhalfs Wed Jan  2 12:57:01 2019        (r4070)
+++ jhalfs/trunk/jhalfs Sun Jan 13 00:32:24 2019        (r4071)
@@ -66,7 +66,9 @@
 set -e
 trap see_ya 0
 trap 'simple_error "${LINENO}" "$?" "${FUNCNAME}" "${BASH_SOURCE}"' ERR
-trap 'echo -e "\n\n${RED}INTERRUPT${OFF} trapped\n" &&  exit 2'  1 2 3 15 17 
18 23
+trap 'echo -e "\n\n${RED}INTERRUPT${OFF} trapped\n" &&  exit 2' \
+      HUP INT QUIT TERM # STOP stops tterminal output and does not seem to
+                        # execute the handler
 #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 
 version="
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to