Skip to content
New issue

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

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

Already on GitHub? # to your account

Update hostpid.c #233

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update hostpid.c #233

wants to merge 1 commit into from

Conversation

arjendekorte
Copy link
Contributor

Remove last instance of gethostbyname

Remove last instance of gethostbyname
@sirainen
Copy link
Contributor

Does it help fix something to get rid of gethostbyname()?

@arjendekorte
Copy link
Contributor Author

Well, gethostbyname is deprecated and not thread safe. Why use that if there is a thread safe alternative?

@sirainen
Copy link
Contributor

sirainen commented Jan 31, 2025

I'm not necessarily against the change, but to answer the question: Because the old code is smaller, and it's known to work. And there are no threads in Dovecot, so that doesn't matter.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants