Skip to content

fix: support finding ssh process by port on macos sequoia #480

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

Merged
merged 4 commits into from
Apr 16, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Apr 15, 2025

Relates to #361.

This brings back the connection indicator, at least on macOS Sequoia.
image

The indicator is populated from a file named <sshPID>.json. The library we were using to find that PID, find-process hasn't been updated for Sequoia.

Full explanation of the necessary change can be found in an umerged PR for that library:
yibn2008/find-process#78

This change was never merged, so I've forked it into our org for now. When it gets upstreamed we can switch back.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ethanndickson ethanndickson force-pushed the ethan/fix-conn-indicator-sequoia branch from 7b1eda3 to facb2eb Compare April 15, 2025 03:38
@ethanndickson ethanndickson marked this pull request as ready for review April 15, 2025 03:42
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @ethanndickson

@ethanndickson ethanndickson force-pushed the ethan/fix-conn-indicator-sequoia branch from 86f3458 to f6c1272 Compare April 15, 2025 08:17
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Interesting that find-process execs netstat instead of reading /proc directly. Although, maybe that is not possible on macOS?

In any case, looks good to me. If we ever implement our own connection code we will be able to get the PID more easily. 🤞

@ethanndickson
Copy link
Member Author

Will need someone else to merge, as I don't have permission!

@bcpeinhardt bcpeinhardt merged commit 1fb0f02 into main Apr 16, 2025
3 checks passed
@bcpeinhardt bcpeinhardt deleted the ethan/fix-conn-indicator-sequoia branch April 16, 2025 01:39
@matifali
Copy link
Member

If we ever implement our own connection code we will be able to get the PID more easily. 🤞

This is becoming more than a want now, and we may actually need this soon.

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.

4 participants