mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-13 04:08:08 +08:00
fix: use local IsProcessDone helper function
fix compilation error by using local helper instead of os.IsProcessDone
This commit is contained in:
parent
5e3f456365
commit
f1b019651e
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user