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

Update postsrsd.c #117

Merged
merged 2 commits into from
Jul 13, 2021
Merged

Update postsrsd.c #117

merged 2 commits into from
Jul 13, 2021

Conversation

spzeidler
Copy link

Some OSes like e.g. the BSDs have the connection inherit O_NONBLOCK.
The result does not prevent postsrsd from working, but causes a syslogged error for roughly every other connection from cleanup.
Removing the flag is a NOP if it's not set, so this change doesn't require an OS-dependent ifdef.

spzeidler and others added 2 commits July 10, 2021 07:35
Some OSes like e.g. the BSDs have the connection inherit O_NONBLOCK.
The result does not prevent postsrsd from working at all, but causes a syslogged error for roughly every other connection from cleanup.
Removing the flag is a NOP if it's not set, so this change doesn't require an OS-dependent ifdef.
@roehling roehling merged commit afa2ca1 into roehling:master Jul 13, 2021
@roehling
Copy link
Owner

Thank you for the pull request!

jeredfloyd pushed a commit to jeredfloyd/postsrsd that referenced this pull request May 4, 2022
* Update postsrsd.c

Some OSes like e.g. the BSDs have the connection inherit O_NONBLOCK.
The result does not prevent postsrsd from working at all, but causes a syslogged error for roughly every other connection from cleanup.
Removing the flag is a NOP if it's not set, so this change doesn't require an OS-dependent ifdef.

* Reformat source code

Co-authored-by: Timo Röhling <timo@gaussglocke.de>
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