Merge "veyron/lib/testutil/integration: remove Stderr and ErrorOutput calls"
diff --git a/runtimes/google/rt/security.go b/runtimes/google/rt/security.go
index e3cc484..fd3226a 100644
--- a/runtimes/google/rt/security.go
+++ b/runtimes/google/rt/security.go
@@ -81,8 +81,8 @@
return -1, nil
}
ifd, err := strconv.Atoi(fd)
- if err == nil && handle != nil {
- // If we're using a handle, children can't inherit the agent.
+ if err == nil {
+ // Don't let children accidentally inherit the agent connection.
syscall.CloseOnExec(ifd)
}
return ifd, err