mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
killall: Continue killing processes if kill()
call fails
This commit is contained in:
parent
d97614a31e
commit
cd08870a64
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ static ErrorOr<int> kill_all(StringView process_name, unsigned const signum)
|
||||||
|
|
||||||
for (auto& process : all_processes.processes) {
|
for (auto& process : all_processes.processes) {
|
||||||
if (process.name == process_name) {
|
if (process.name == process_name) {
|
||||||
TRY(Core::System::kill(process.pid, signum));
|
if (auto maybe_error = Core::System::kill(process.pid, signum); maybe_error.is_error())
|
||||||
|
warnln("{}", maybe_error.release_error());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue