Kill all child process of a script

view story

http://www.unix.com – Hi guys i have a problem with a script... this script creates differents GUI with YAD... well i want that when i press the "Cancel" button on this graphical interface all the child process and even the same script should be killed Code: #!/bin/bash function gui_start {     local choice=""     choice=`yad --title="TITLE" --center --text="WELCOME insert text" --entry`     verify_exit "$?"         if [ "$choice" == "a" ]; then         gui="gui_1& (HowTos)