Retry on pidfile read error

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2016-03-17 23:53:23 -07:00
parent 707555be47
commit f9ecd09f4f
3 changed files with 3 additions and 2 deletions

View file

@ -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