mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
Use SIGKILL on OS X
This commit is contained in:
parent
48ef62bda6
commit
8082a0b5ac
@ -120,7 +120,8 @@ Status checkStalePid(const std::string& content) {
|
||||
// If the process really is osqueryd, return an "error" status.
|
||||
if (FLAGS_force) {
|
||||
// The caller may choose to abort the existing daemon with --force.
|
||||
status = kill(pid, SIGQUIT);
|
||||
// Do not use SIGQUIT as it will cause a crash on OS X.
|
||||
status = kill(pid, SIGKILL);
|
||||
::sleep(1);
|
||||
|
||||
return Status(status, "Tried to force remove the existing osqueryd");
|
||||
|
Loading…
Reference in New Issue
Block a user