From e4dce6b0d0a465f792d1de70c0c65c2fcb8d196c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 12 Mar 2016 02:51:12 -0500 Subject: fixity fix --- freenect-server--http.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'freenect-server--http.c') 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) -- cgit v1.2.3-54-g00ecf