Permalink
Browse files

fix silly bugs

  • Loading branch information...
stephentu committed Aug 13, 2013
1 parent 37fc1ed commit 94db0b4e7b97014cbdb9875dcdf9e6224b363197
Showing with 2 additions and 2 deletions.
  1. +1 −1 fileutils.h
  2. +1 −1 stats_server.cc
View
@@ -27,7 +27,7 @@ class fileutils {
if (r == 0)
return EOF;
if (r < 0) {
if (!(errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR))
if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR)
continue;
return r;
}
View
@@ -43,7 +43,7 @@ stats_server::serve_forever()
int cfd = accept(fd, nullptr, 0);
if (cfd < 0)
throw system_error(errno, system_category(), "accept failed");
thread(&stats_server::serve_client, this, fd).detach();
thread(&stats_server::serve_client, this, cfd).detach();
}
}

0 comments on commit 94db0b4

Please sign in to comment.