Skip to content
86% off$349 $48.86code BF2026

Guides

How to kill a process that won't die on Mac (killall fix)

killall says "No matching processes belonging to you were found"? Use kill -9 with the PID, then check for stuck (U) and respawning processes.

TroubleshootingUpdated 6 min read

On this page

You ran killall and got this:

text
No matching processes belonging to you were found

Or you killed a process and it returned seconds later with a new PID. Both have different causes. This page covers each one.

Why it happens

Most common first:

  1. You gave killall a number. killall matches names. A PID copied from Activity Monitor is not a name.
  2. The name is slightly off. The display name in Activity Monitor can differ from the real process name. Without sudo, killall also only searches processes you own.
  3. The process belongs to root or another user. You get "Operation not permitted", or killall finds nothing. Apple's Activity Monitor guide says quitting a process you don't own may require administrator authentication.
  4. The process is in uninterruptible wait (state U). SIGKILL is queued, but the process is blocked inside the kernel, usually waiting on a disk, network share or device. Nothing can end it until the wait ends.
  5. launchd restarts it. Background jobs with KeepAlive in their configuration are started again when they exit. People report that the Photos analysis daemon photoanalysisd behaves this way. In one reported case, launchctl remove, kill and disable all left it running, and it returned after a restart.

Users also report a stuck process that can't be quit, force-quit or sampled and that blocks things like emptying the Trash or shutting down. That pattern fits cause 4.

Step-by-step fixes

Fix 1: Kill by PID, not with killall

  1. Find the PID. In Activity Monitor, read the PID column. In Terminal, pgrep -x matches an exact process name:

    bash
    pgrep -x Safari

    This prints the PID of every process named exactly "Safari". It changes nothing.

  2. Ask the process to exit cleanly. This sends SIGTERM, which most apps handle by saving and quitting:

    bash
    kill 1234
  3. Wait a few seconds, then check:

    bash
    ps -p 1234

    If only the header line prints, the process has exited.

  4. If it is still there, send SIGKILL, which the process cannot catch or ignore. Unsaved changes in that process are lost, and there is no undo.

    bash
    kill -9 1234

Check the PID before you send it. PIDs get reused, and a typo can end the wrong process. If you prefer killall, give it the name: killall Safari.

In Activity Monitor, select the process, click the Stop button in the upper-left corner and choose Force Quit. Apple's Activity Monitor guide notes that Force Quit ends the process immediately and open files may lose data.

Fix 2: The process belongs to root or another user

The User column in Activity Monitor shows the owner. If it isn't you, kill fails with "Operation not permitted".

This sends SIGKILL as an administrator. There is no undo.

bash
sudo kill -9 1234

It asks for your password. Don't aim it at launchd (PID 1), kernel_task or WindowServer. Killing them can log you out or destabilize macOS.

Fix 3: Check the process state

If kill -9 returns no error but the process stays, look at its state:

bash
ps -o pid,ppid,stat,command -p 1234

This prints one line including the STAT column. (ps alx shows the same column for every process.) Read the first letter of STAT.

STAT starts withMeaningWhat to do
UUninterruptible wait, stuck in the kernelRemove what it waits on (below)
ZZombie: already dead, only a table entry remainsQuit the parent (the PPID) or restart
TStopped (paused)kill -9 still works
S, I, RSleeping, idle or runningkill -9 should work; if it returns, see Fix 4

For a process stuck in U, Force Quit, kill -9 and sudo can't help. Work on the cause:

  1. Eject external drives, disconnect network shares and unmount disk images.
  2. Unplug any device that was connected when the problem began.
  3. Run the ps command again. If STAT changed, the pending kill usually completes.
  4. If it stays stuck, restart the Mac.

Fix 4: The process dies, then comes straight back

A new process with a different PID appears seconds after you kill the old one. Check who started it:

bash
ps -o pid,ppid,command -p 1234

A PPID of 1 usually means launchd started it. What to do depends on the owner:

  • A third-party app's helper: Quit the app, turn off its launch-at-login option, or uninstall it. In System Settings, search for "Login Items" to see what starts automatically.
  • An Apple daemon such as photoanalysisd: Killing it only gets it restarted. Weakening macOS security settings to stop it isn't worth it. If it slows your Mac, contact Apple Support.
  • Not sure what it is: Look up the process name before you disable anything.

Where Procowl helps, and where it doesn't

Activity Monitor and Terminal cover most of this. Procowl helps with part of it, only for your own processes:

SituationProcowl
Find the PIDType the name, PID or pid:1234 in the search field
End a process of yoursRight-click the row, choose Force Quit… and confirm
Spot a respawning jobA Restarting ×N badge appears when the same name ended and restarted at least 3 times in 10 minutes
See why it returnsThe inspector's Launched by row names the launchd plist; Launch Agents shows a "Keep alive" chip (read-only)

Procowl cannot kill root-owned processes, even with Enhanced Access on; use sudo kill -9 from Fix 2. It cannot get past a U state, and it does not unload or disable launch jobs. It refuses PID 1 and processes like WindowServer.

For a process of yours that keeps respawning, Suspend… freezes it without ending it, so launchd has nothing to restart. Procowl resumes suspended processes when it quits, so this is a pause, not a fix. See the Procowl guide to quit, suspend and signals. Procowl is part of MacSuite; you can try it free for 7 days.

Checklist before you try again

  • You are using kill <pid>, not killall <pid>.
  • The PID is current and matches the process name.
  • You used sudo if the User column isn't you.
  • You checked STAT: U means fix the wait, not the signal.
  • A new PID after the kill means launchd, so look at the parent and Login Items.

If nothing works

Restart the Mac from the Apple menu. A restart clears zombies and most stuck waits, though a launchd job will start again by design. Apple's force quit guide also covers forcing the Mac off. If the same process hangs after every restart, contact Apple Support, or the developer if it belongs to a third-party app.

text
My Mac runs macOS [version]. The process [name] (PID [number]) cannot be killed.
kill -9 and sudo kill -9 do not end it. Output of
"ps -o pid,ppid,stat,command -p [number]":
[paste output]
It started after: [drive connected / app update / other].
Already tried: restart, ejecting drives and network shares.

Common questions

Why does killall say "No matching processes belonging to you were found"?

Either the name doesn't match any process you own, or you passed a PID. Use pgrep -x <name> to confirm the name, or switch to kill <pid>.

Can anything kill a process in state U?

No. The kill takes effect only when the kernel wait ends. Remove the drive, share or device it waits on, or restart.

Is it safe to kill photoanalysisd?

It's an Apple background job, so launchd restarts it. Killing it is harmless but temporary; contact Apple Support if it keeps slowing your Mac.

Should I use kill or kill -9 first?

Plain kill first. It lets the app save and clean up. Use -9 only when that fails.

Every app.
One purchase.