If we didn't explicitly bind (i.e. are a client), then we don't start
the accepter. That's fine. But the reaper thread start was also
conditional, when it shouldn't be; otherwise the client can't clean up
old Pipes (and their sockets).
Fixes: #732
Signed-off-by: Sage Weil <sage@newdream.net>
}
// go!
- if (did_bind) {
+ if (did_bind)
accepter.start();
- reaper_started = true;
- reaper_thread.create();
- }
+ reaper_started = true;
+ reaper_thread.create();
return 0;
}