()
| 396 | } |
| 397 | |
| 398 | func (f *Fds) copy() map[fileName]*file { |
| 399 | f.mu.Lock() |
| 400 | defer f.mu.Unlock() |
| 401 | |
| 402 | files := make(map[fileName]*file, len(f.used)) |
| 403 | for key, file := range f.used { |
| 404 | files[key] = file |
| 405 | } |
| 406 | |
| 407 | return files |
| 408 | } |
| 409 | |
| 410 | func (f *Fds) closeInherited() { |
| 411 | f.mu.Lock() |
no outgoing calls