Skip to content

Remove ftruncate#49

Open
blairsteven wants to merge 1 commit into
masterfrom
remove_ftruncate
Open

Remove ftruncate#49
blairsteven wants to merge 1 commit into
masterfrom
remove_ftruncate

Conversation

@blairsteven

Copy link
Copy Markdown
Contributor

ftruncate is useful when making a record smaller, but we will never be doing that. Between the ftruncate and the fflush (via fclose) the file on disk is missing the closing bracket, so shorten this window by writing the whole diff in a single operation.

ftruncate is useful when making a record smaller, but we will never be
doing that. Between the ftruncate and the fflush (via fclose) the file
on disk is missing the closing bracket, so shorten this window by
writing the whole diff in a single operation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants