Skip to content

Improve invalid fd error messages for epoll#13

Open
erikgeiser wants to merge 1 commit intomuesli:mainfrom
erikgeiser:epoll_errors
Open

Improve invalid fd error messages for epoll#13
erikgeiser wants to merge 1 commit intomuesli:mainfrom
erikgeiser:epoll_errors

Conversation

@erikgeiser
Copy link

Previously, the error returned by unix.EpollCtl was discarded. This PR improves the error messages and includes the file descriptors as they are likely related to any error that can occur. Additionally a -1 file descriptor is caught early with a descriptive error message.

@Blane245
Copy link

Blane245 commented Mar 7, 2024

I am pursuing a problem that I am having with go.d.plugin and it is right here. I would suggest that the code not substitute another message has you have done, but use the actual cancelreader error codes.

BTW, my problem is that go.d.plugin is not collecting when it is spawned by my server but will work when run from the console or a shell script. The only difference in the logs this error message. The problem started a couple of days ago.

cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 25, 2024
The failure happens only on GH Actions, so I'm doing this test commit to
see the underlaying error
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 25, 2024
The failure happens only on GH Actions, so I'm doing this test commit to
see the underlaying error
@mvdan
Copy link

mvdan commented Oct 19, 2024

Ah, I was about to send a very similar PR as I was confused by the lack of information in these error messages as well (mvdan/sh#1099). @muesli would you be able to review this PR? At least it looks good to me :)

@muesli
Copy link
Owner

muesli commented Oct 19, 2024

Will do!

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.

5 participants