Skip to content

Conversation

@dcantah
Copy link
Member

@dcantah dcantah commented Nov 4, 2022

retryingWriteFile was a simple wrapper around os.WriteFile to retry writes on EINTR. This was added due to change in the go runtime causing more EINTRs to occur, more here:
golang/go#38033

However since 1.15 the stdlib automatically retries IO on EINTR, and since this package uses things from go 1.16, all consumers of this pkg should be on > 1.15 making the wrapper redundant.

retryingWriteFile was a simple wrapper around os.WriteFile to retry
writes on EINTR. This was added due to change in the go runtime causing
more EINTRs to occur, more here:
golang/go#38033

However since 1.15 the stdlib automatically retries
IO on EINTR, and since this package uses things from go 1.16, all
consumers of this pkg should be on > 1.15 making the wrapper
redundant.

Signed-off-by: Danny Canter <danny@dcantah.dev>
@fuweid fuweid merged commit e99bc54 into containerd:main Nov 5, 2022
AkihiroSuda added a commit that referenced this pull request Nov 12, 2022
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.

3 participants