Add Valid command to spawner and make executors check when opening

This commit is contained in:
Alex Dadgar
2015-11-06 11:23:27 -08:00
parent bf44d3c2ed
commit 34ccda8cd1
6 changed files with 123 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ func (e *BasicExecutor) Open(id string) error {
// Setup the executor.
e.spawn = &spawn
return nil
return e.spawn.Valid()
}
func (e *BasicExecutor) Wait() error {