This means the cleanup has to wait until the next daemon iteration,
which often takes up to 1s because it's sleeping on epoll.
This in turn creates unacceptable (according to tests) delays.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b064
struct logger *const server = reader->server;
assert(server);
+#if 0
+ /* This should get replaced by an immediate cleanup of
+ * the reader, and only the thread ID would get put into
+ * the storage. It was not done so due to a tight deadline. */
+
int r = pthread_mutex_lock(&server->drs_lock);
assert(!r);
if (ok)
return;
+#endif
thread_seppuku(reader); // prevent a leak
__builtin_unreachable();