don't user os.Stderr in attach Upstream-commit: 56ec1219254a52d49dbf9c05091b09f0fe5cd719 Component: engine