tensorpipe
tensorpipe copied to clipboard
Close file descriptors after mapping ring buffer
trafficstars
No need to keep them open once the memory has been mapped.
Also, we keep them as int on the shm connection, so they aren't cleaned up on destruction.
Note: They should be cleaned up as part of ~Segment() in tensorpipe/util/shm/segment.cc.