reorder test

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-01-25 22:28:02 +00:00
parent 380c51010b
commit 6c838d846f

View File

@ -35,8 +35,8 @@ func main() {
log.Fatalln("Error reading watch file", err) log.Fatalln("Error reading watch file", err)
} }
bytes, err := ioutil.ReadFile(pidfile) bytes, err := ioutil.ReadFile(pidfile)
pidstring := string(bytes[:])
if err != nil { if err != nil {
pidstring := string(bytes[:])
pid, err := strconv.Atoi(pidstring) pid, err := strconv.Atoi(pidstring)
if err != nil { if err != nil {
syscall.Kill(pid, syscall.SIGHUP) syscall.Kill(pid, syscall.SIGHUP)