Comparing file descriptors is better than memcmping a struct