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

fix: always detect the host shell on MacOS #83

Merged
merged 3 commits into from
Oct 24, 2023
Merged

Conversation

frostming
Copy link
Member

Signed-off-by: Frost Ming me@frostming.com

Signed-off-by: Frost Ming <me@frostming.com>
@@ -31,7 +31,7 @@ def iter_process_parents(pid, max_depth=10):
processes_mapping = {}
for line in output.split("\n"):
try:
pid, ppid, args = line.strip().split(None, 2)
_pid, ppid, args = line.strip().split(None, 2)
Copy link
Member Author

Choose a reason for hiding this comment

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

This shadows the pid parameter passed in, causing the bug.

@frostming frostming linked an issue Oct 24, 2023 that may be closed by this pull request
Signed-off-by: Frost Ming <me@frostming.com>
Signed-off-by: Frost Ming <me@frostming.com>
@frostming frostming merged commit bbfe7fb into master Oct 24, 2023
38 checks passed
@frostming frostming deleted the frostming/issue81 branch October 24, 2023 01:40
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.

Always detects fish
1 participant