#!/bin/bash . ./trap.sh # try commenting this out (sleep 0.1 ; echo child process still running) & kill -HUP $$