2 ms·
Killing all processes under the user is the expected behavior of kill(-1). That's perfectly fine. Crashing the system is the bug part. From the manpage:
by eridius 9y ago
Killing all processes under the user is the expected behavior of kill(-1). That's perfectly fine. Crashing the system is the bug part.
From the manpage:
If pid is -1:
If the user has super-user privileges, the signal is sent to all
processes excluding system processes and the process sending the
signal. If the user is not the super user, the signal is sent to
all processes with the same uid as the user, excluding the
process sending the signal. No error is returned if any process
could be signaled.
- kbenson 9y agoFair enough, I really should have caught that. I guess it's been longer than I thought since I had to deal with that stuff. :/ It doesn't change the point I was trying to make much though.