diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-12 01:46:36 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-04-12 01:46:36 -0400 |
commit | 3431230e59249001b6f45250fc3293a088b9ed15 (patch) | |
tree | c88bef11a8536719b2b7aafb458f2effc546316f | |
parent | 4960f9fedcbce3b99fe8bf52e0ae8bac946005fd (diff) |
-rw-r--r-- | src/freenect-server.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/freenect-server.c b/src/freenect-server.c index f6c2016..8680687 100644 --- a/src/freenect-server.c +++ b/src/freenect-server.c @@ -56,7 +56,6 @@ bool running = true; } else { \ error(0, 0, "%s: panic: neither feof nor ferror", name); \ } \ - exitcode = EXIT_FAILURE; \ } \ stop(0); \ } while(0) @@ -113,7 +112,7 @@ void write_imageframe(const char *name, FILE *stream, struct mpjpg_encoder *e, J if (fwrite("\r\n", 2, 1, stream) < 1) stdioerror(stream, name); if (fflush(stream) != 0) - stdioerror(stream, name); + threaderror(0, errno, name); } /* Stream handlers */ @@ -162,7 +161,7 @@ void handle_accel(freenect_device *dev UNUSED, freenect_raw_tilt_state* data) { stdioerror(accel_stream, "accel.mjson"); free(json); if (fflush(accel_stream) != 0) - threaderror(EXIT_FAILURE, errno, "accel.mjson"); + threaderror(0, errno, "accel.mjson"); } uint8_t depth_rgb[640*480*3]; |