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

Use 'ss' command in absence of 'netstat' to find active tcp port #12181

Closed
wants to merge 1 commit into from

Conversation

sambitesh
Copy link
Contributor

PgPortIsActive would rely on netstat to find active tcp port. In many
modern Centos systems it has been replaced by ss. So now in absence of
netstat we use ss.

Here are some reminders before you submit the pull request

  • Add tests for the change
  • Document changes
  • Communicate in the mailing list if needed
  • Pass make installcheck
  • Review a PR in return to support the community

@d
Copy link
Contributor

d commented Jun 19, 2021

Why do we shell out when we can get the same information with import socket?

`PgPortIsActive` would rely on `netstat` to find active tcp port. In many
modern Centos systems it has been replaced by `ss`. So now in absence of
`netstat` we use `ss`.

Co-authored-by: Sumit Basu Mallick sumitbm@rediffmail.com
Co-authored-by: Hari Krishna pobbati.hari@gmail.com
@sambitesh
Copy link
Contributor Author

@d You are right. I am closing this pull request and opening a new one.

@sambitesh sambitesh closed this Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants