diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-03-12 02:51:12 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-03-12 02:51:12 -0500 |
commit | e4dce6b0d0a465f792d1de70c0c65c2fcb8d196c (patch) | |
tree | 746e15f857fada214c54d53c15aeba90899e9bd5 /freenect-server--http.c | |
parent | bd9887f10533eba76129f14f92ac971f11d1b1c0 (diff) |
fixity fix
Diffstat (limited to 'freenect-server--http.c')
-rw-r--r-- | freenect-server--http.c | 5 |
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) |