• Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    13 hours ago

    I am not sure how Windows handles processes, but on Linux you have different signals. SIGKILL (9) generally kills the process immediately, but there are other signals like SIGTERM (the default signal, 1) which asks process to gracefully quit, and many others.

    If you want to know more, check the signal(7) man page or this Wikipedia page.