I have a Bash parent script that on unexpected input calls an error logging child script that logs the error. I also want the execution to halt when the error occurs and th
Extension to @anishsane comment because MacOS has little bit different ps syntax.
ps
Finding parent process ID (ppid) in child script under Mac OS (Darwin):
kill -SIGUSR1 $(ps $$ -o ppid=);exit