Retry on pidfile read error
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
707555be47
commit
f9ecd09f4f
3 changed files with 3 additions and 2 deletions
|
@ -199,7 +199,7 @@ func (p *process) getPidFromFile() (int, error) {
|
|||
}
|
||||
i, err := strconv.Atoi(string(data))
|
||||
if err != nil {
|
||||
return -1, err
|
||||
return -1, errInvalidPidInt
|
||||
}
|
||||
p.pid = i
|
||||
return i, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue