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:
No matching processes belonging to you were foundOr 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:
- You gave
killalla number.killallmatches names. A PID copied from Activity Monitor is not a name. - The name is slightly off. The display name in Activity Monitor can differ from the real process name. Without
sudo,killallalso only searches processes you own. - The process belongs to root or another user. You get "Operation not permitted", or
killallfinds nothing. Apple's Activity Monitor guide says quitting a process you don't own may require administrator authentication. - 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. - launchd restarts it. Background jobs with
KeepAlivein their configuration are started again when they exit. People report that the Photos analysis daemonphotoanalysisdbehaves this way. In one reported case,launchctl remove,killanddisableall 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
Find the PID. In Activity Monitor, read the PID column. In Terminal,
pgrep -xmatches an exact process name:bash pgrep -x SafariThis prints the PID of every process named exactly "Safari". It changes nothing.
Ask the process to exit cleanly. This sends SIGTERM, which most apps handle by saving and quitting:
bash kill 1234Wait a few seconds, then check:
bash ps -p 1234If only the header line prints, the process has exited.
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.
sudo kill -9 1234It 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:
ps -o pid,ppid,stat,command -p 1234This prints one line including the STAT column. (ps alx shows the same column for every process.) Read the first letter of STAT.
| STAT starts with | Meaning | What to do |
|---|---|---|
U | Uninterruptible wait, stuck in the kernel | Remove what it waits on (below) |
Z | Zombie: already dead, only a table entry remains | Quit the parent (the PPID) or restart |
T | Stopped (paused) | kill -9 still works |
S, I, R | Sleeping, idle or running | kill -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:
- Eject external drives, disconnect network shares and unmount disk images.
- Unplug any device that was connected when the problem began.
- Run the
pscommand again. If STAT changed, the pending kill usually completes. - 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:
ps -o pid,ppid,command -p 1234A 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:
| Situation | Procowl |
|---|---|
| Find the PID | Type the name, PID or pid:1234 in the search field |
| End a process of yours | Right-click the row, choose Force Quit… and confirm |
| Spot a respawning job | A Restarting ×N badge appears when the same name ended and restarted at least 3 times in 10 minutes |
| See why it returns | The 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>, notkillall <pid>. - The PID is current and matches the process name.
- You used
sudoif the User column isn't you. - You checked STAT:
Umeans 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.
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.