To Reproduce
- Start yggdrasild with at least one worker
- kill -9 $yggdrasil_pid
- kill -9 $worker_pid
- Start yggdrasild again
Expected behavior
Yggdrasil checks that the worker pid file points to a process that does not exist anymore, removes the file and moves on.
Actual behavior
Yggdrasil fails to start
# /usr/sbin/yggdrasild
[yggd] 2022/10/10 10:23:31 /root/yggdrasil/cmd/yggd/main.go:207: starting yggd version 0.2.98
cannot stop workers: cannot stop worker: cannot stop worker: cannot stop process: os: process already finished
# echo $?
1
Additional Information
- OS: Rocky Linux 8.5 but that shouldn't be relevant
- Version main @ 88a5f78