summaryrefslogtreecommitdiff
path: root/freenect-server--http.c
diff options
context:
space:
mode:
Diffstat (limited to 'freenect-server--http.c')
-rw-r--r--freenect-server--http.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/freenect-server--http.c b/freenect-server--http.c
index 6871ffb..cda7ae1 100644
--- a/freenect-server--http.c
+++ b/freenect-server--http.c
@@ -146,7 +146,9 @@ void connection_handler(int fd) {
void *connection_thread(void *arg_anon) {
int fd = (int)(intptr_t)arg_anon;
+ error(0, 0, "Connection %d opened", fd);
connection_handler(fd);
+ error(0, 0, "Connection %d closed", fd);
return NULL;
}
@@ -168,7 +170,8 @@ int main(int argc, char *argv[]) {
for (int i = 2; i < argc; i++)
file_add(argv[i]);
-
+
+ signal(SIGPIPE, SIG_IGN);
while (1) {
int conn = accept(sock, NULL, NULL);
if (conn < 0)