open-nomad/client/driver/spawn/spawn_posix.go
2015-11-04 16:53:27 -08:00

15 lines
189 B
Go

// +build !windows
package spawn
import "syscall"
func (s *Spawner) Alive() bool {
if s.spawn == nil {
return false
}
err := s.spawn.Signal(syscall.Signal(0))
return err == nil
}