src/server/daemon/error.c

changeset 108
2a394ccdd778
parent 92
382bff43c6eb
child 132
e9afb5387007
--- 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);
 }

mercurial