Do not ask to kill process we spawned

This commit is contained in:
Derek Parker
2015-07-07 09:04:03 -05:00
parent 05517c62c1
commit c1e7f8c45a
4 changed files with 27 additions and 6 deletions

View File

@ -302,3 +302,10 @@ func (s *RPCServer) ListGoroutines(arg interface{}, goroutines *[]*api.Goroutine
*goroutines = gs
return nil
}
func (c *RPCServer) AttachedToExistingProcess(arg interface{}, answer *bool) error {
if c.config.AttachPid != 0 {
*answer = true
}
return nil
}