Top "Bash-trap" questions

Use this tag for questions about the `trap` Bash built-in.

How can I trap errors and interrupts in GNU make?

I'm wondering if there's a way to implement trap in GNU make, similar to that built into BASH? If the …

makefile signals gnu-make bash-trap
Unable to trap SIGINT signal in a background shell

I am unable to trap a signal when running in a child / background process. Here is my simple bash script: #!/…

bash signals child-process sigint bash-trap
bash restart sub-process using trap SIGCHLD?

I've seen monitoring programs either in scripts that check process status using 'ps' or 'service status(on Linux)' periodically, …

bash child-process bash-trap sigchld