Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore SIGPIPE, handle EPIPE #49

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Ignore SIGPIPE, handle EPIPE #49

merged 1 commit into from
Sep 18, 2024

Conversation

nirs
Copy link
Member

@nirs nirs commented Sep 17, 2024

We get this signal when writing to a socket when the other side closed the connection. This is wrong since this is not a fatal error. The right way to handle SIGPIPE is to ignore it and handle EPIPE when writing to socket, which we already do.

Fixes: #48

We get this signal when writing to a socket when the other side closed
the connection. This is wrong since this is not a fatal error. The right
way to handle SIGPIPE is to ignore it and handle EPIPE when writing to
socket, which we already do.

Fixes: lima-vm#48
Signed-off-by: Nir Soffer <[email protected]>
Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, seems sensible to me.

@jandubois jandubois added this to the v1.1.5 milestone Sep 18, 2024
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit d992630 into lima-vm:master Sep 18, 2024
2 of 5 checks passed
@nirs nirs deleted the sigpipe branch September 23, 2024 22:20
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.

socket_vmnet exit when connection is closed
3 participants