()
| 29 | } |
| 30 | |
| 31 | func (s *syncSocket) Close() error { |
| 32 | // Even with errors from Close(), we have to assume the pipe was closed. |
| 33 | s.closed.Store(true) |
| 34 | return s.f.Close() |
| 35 | } |
| 36 | |
| 37 | func (s *syncSocket) isClosed() bool { |
| 38 | return s.closed.Load() |
no outgoing calls