3 ms·
What does -1 do, send that signal to all processes?
by garblegarble 10y ago
What does -1 do, send that signal to all processes?
- merpnderp 10y agoTo all with a PID > -1
- tokenizerrr 10y agoYup. From man kill: -1 All processes with pid larger than 1 will be signaled.
- EdwinHoksberg 10y agoYes, but not for the current process and init
- Sidnicious 10y agoI was going to say that it signals launchd's process group — every process spawned by launchd, which always runs with PID 1. However, the `kill` manpage confirms your hunch: -1 If superuser, broadcast the signal to all processes; otherwise broadcast to all processes belonging to the user. (This is on macOS/iOS, Linux might have slightly different semantics.)