src/server/daemon/error.c

changeset 108
2a394ccdd778
parent 92
382bff43c6eb
child 132
e9afb5387007
equal deleted inserted replaced
107:7e81699d1f77 108:2a394ccdd778
102 } 102 }
103 if (fcntl(req->connection->fd, F_SETFL, flags & ~O_NONBLOCK) != 0) { 103 if (fcntl(req->connection->fd, F_SETFL, flags & ~O_NONBLOCK) != 0) {
104 // error 104 // error
105 } 105 }
106 106
107 write(req->connection->fd, buf, len); 107 req->connection->write(req->connection, buf, len);
108 write(req->connection->fd, msg.ptr, msg.length); 108 req->connection->write(req->connection, msg.ptr, msg.length);
109 109
110 close(req->connection->fd); 110 req->connection->close(req->connection);
111 } 111 }

mercurial