#!/bin/sh trap "echo received SIGHUP" SIGHUP sub2.sh .