--- a/src/server/daemon/error.c Sat Oct 31 16:39:12 2015 +0100 +++ b/src/server/daemon/error.c Sat Oct 31 18:02:07 2015 +0100 @@ -104,8 +104,8 @@ // error } - write(req->connection->fd, buf, len); - write(req->connection->fd, msg.ptr, msg.length); + req->connection->write(req->connection, buf, len); + req->connection->write(req->connection, msg.ptr, msg.length); - close(req->connection->fd); + req->connection->close(req->connection); }