]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
when the processor start ,listen_sd also can be zero. 5542/head
authorl11625 <liu.xuan@h3c.com>
Tue, 11 Aug 2015 08:12:45 +0000 (16:12 +0800)
committerl11625 <liu.xuan@h3c.com>
Tue, 11 Aug 2015 08:12:45 +0000 (16:12 +0800)
src/msg/async/AsyncMessenger.cc

index 1a50adecec0651f774b5828db2373d1037004afa..c4be6a7746bf34f1cdd00a1606839d6dc502f43f 100644 (file)
@@ -227,7 +227,7 @@ int Processor::start(Worker *w)
   ldout(msgr->cct, 1) << __func__ << " " << dendl;
 
   // start thread
-  if (listen_sd > 0) {
+  if (listen_sd >= 0) {
     worker = w;
     w->center.create_file_event(listen_sd, EVENT_READABLE,
                                 EventCallbackRef(new C_processor_accept(this)));