mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
killall: Continue killing processes if kill() call fails
This commit is contained in:
committed by
Andreas Kling
parent
d97614a31e
commit
cd08870a64
@@ -25,7 +25,8 @@ static ErrorOr<int> kill_all(StringView process_name, unsigned const signum)
|
||||
|
||||
for (auto& process : all_processes.processes) {
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user