mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
killall: Continue killing processes if kill()
call fails
This commit is contained in:
parent
d97614a31e
commit
cd08870a64
Notes:
sideshowbarker
2024-07-16 19:29:26 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/cd08870a64 Pull-request: https://github.com/SerenityOS/serenity/pull/19173
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) {
|
||||
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…
Reference in a new issue