]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: fail on sd < 0
authorSage Weil <sage@newdream.net>
Wed, 7 Apr 2010 21:12:43 +0000 (14:12 -0700)
committerSage Weil <sage@newdream.net>
Wed, 7 Apr 2010 21:23:44 +0000 (14:23 -0700)
commit3d4a692b590368215cc76098e92cd05b25160976
tree563e12d3290329603067f9a182ba32d4485675db
parent686192a03eb7d28c7340dcab6d9671505f9cd986
msgr: fail on sd < 0

I saw a case where poll(2) was blocking despite being passed an fd of -1.
Since that's clearly invalid, we can fail tcp_{read,write} before that
point.

Weird.
src/msg/tcp.cc