Project: mesos
Issue MESOS-3520: Add an abstraction to manage the life cycle of file descriptors.
In order to avoid missing {{close()}} calls on file descriptors, or double-closing file descriptors, it would be nice to add a reference counted {{FileDescriptor}} in a similar way to what we've done for Socket. This will be closed automatically when the last reference goes away, and double closes can be prevented via internal state.
Story points: 5