edit: fixed thumbnail

  • rwhitisissle@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    Depends on whether or not you want to kill only the child processes of a parent process or if you want to kill the parent as well. To kill the parent and children, you can kill the entire process group, specifying the pgid in the kill command. To kill only the parent you can trap SIGTERM in the parent and then send SIGTERM to the process group.