fix: use local IsProcessDone helper function

fix compilation error by using local helper instead of os.IsProcessDone
This commit is contained in:
Marcin Rataj 2025-08-22 17:50:30 +02:00
parent 5e3f456365
commit f1b019651e

View File

@ -47,7 +47,7 @@ func (pt *processTracker) KillAll() {
// Try SIGTERM first
if err := proc.Signal(syscall.SIGTERM); err != nil {
if !os.IsProcessDone(err) {
if !IsProcessDone(err) {
log.Debugf("error sending SIGTERM to PID %d: %v", pid, err)
}
}
@ -57,7 +57,7 @@ func (pt *processTracker) KillAll() {
// Force kill if still running
if err := proc.Kill(); err != nil {
if !os.IsProcessDone(err) {
if !IsProcessDone(err) {
log.Debugf("error killing PID %d: %v", pid, err)
}
}