Thanks @shirleyquirk for your help, but my problem persists, or I haven't explained myself well. What I want is to write the command "kill" in the terminal to kill the process and all of its descendants.
How to catch the signal sent by "kill" in Nim? Example: # launch n processes $ ./server # how to kill parent and child's at once? $ kill -9 pid Run