]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: avoid closing fd twice
authorSage Weil <sage@newdream.net>
Fri, 31 Jul 2009 22:45:18 +0000 (15:45 -0700)
committerSage Weil <sage@newdream.net>
Fri, 31 Jul 2009 23:09:01 +0000 (16:09 -0700)
commiteb06eb65722edd380a0ea48c5ffb1ab6fdc97e9b
tree33ba8b58268fb289fd9ec32fa703e693b600440c
parentdbc3c6138c4f4ee20083f719ece3855d205bec0b
msgr: avoid closing fd twice

Set fd to -1 after so we don't close it again later.  Otherwise
we get EBADF in random other places and are unhappy.
src/msg/SimpleMessenger.cc