Skip to content

SIGTERM or SIGKILL? #3

@avinassh

Description

@avinassh

To restart the system apps like Finder or Dock, shouldn't we be sending kill signal instead of term?

killall Finder sends SIGTERM where as killall -KILL Finder sends SIGKILL.

So I think, the relevant code should be:

    killTask.launchPath = "/usr/bin/killall"
    killTask.arguments = ["-KILL", "Finder"]
    killTask.launch()

if you think this is correct, I will send a PR 😃

some links on the same: 1, 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions