diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-10-30 22:06:33 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-10-30 22:06:33 -0700 |
commit | 937f09dd3532a2033e9bf159bed842bfd1f3ad2a (patch) | |
tree | 71de2efdc3813016f08f30b9d7516ee93d6c2da1 /src/rmd_cache_frame.c | |
parent | a031634bd64c7f30c4ace5ca06a5a47600b42f47 (diff) |
*: more minor cleanups
No need for fflush(stderr) when it's already unbuffered by default.
According to setvbuf(3):
Normally all files are block buffered. If a stream refers
to a terminal (as stdout normally does), it is line
buffered. The standard error stream stderr is always
unbuffered by default.
Diffstat (limited to 'src/rmd_cache_frame.c')
-rw-r--r-- | src/rmd_cache_frame.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rmd_cache_frame.c b/src/rmd_cache_frame.c index a1cb669..3a4e9b3 100644 --- a/src/rmd_cache_frame.c +++ b/src/rmd_cache_frame.c @@ -262,7 +262,6 @@ void *rmdCacheImageBuffer(ProgData *pdata) if (rmdSwapCacheFilesWrite(pdata->cache_data->imgdata, nth_cache, &fp, &ucfp)) { fprintf(stderr, "New cache file could not be created.\n" "Ending recording...\n"); - fflush(stderr); raise(SIGINT); //if for some reason we cannot make a new file //we have to stop. If we are out of space, //which means @@ -309,7 +308,6 @@ void *rmdCacheImageBuffer(ProgData *pdata) fprintf(stderr, "Saved %d frames in a total of %d requests\n", frameno, capture_frameno); - fflush(stderr); if (!pdata->args.zerocompression) { gzflush(fp, Z_FINISH); |