mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
Shell: Don't spam perror() on kill_job()
That function is allowed to be given a dead job, so don't bother with perror()
This commit is contained in:
committed by
Andreas Kling
parent
86f50aa74e
commit
cb29dca029
@@ -1833,7 +1833,8 @@ void Shell::kill_job(const Job* job, int sig)
|
||||
|
||||
if (killpg(job->pgid(), sig) < 0) {
|
||||
if (kill(job->pid(), sig) < 0) {
|
||||
perror("kill");
|
||||
if (errno != ESRCH)
|
||||
perror("kill");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user