Skip to content

Stop before we restart #668

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

Conversation

TylerLeonhardt
Copy link
Member

PSES's debug adapter wasn't properly shutting down between debug sessions (some things were shut down, some things weren't). This might have been the cause of other debug issues we have seen when/if folks have been unable to restart the debugger.

This change is needed to get NamedPipes working because when running Start without fully Stopping before it, the debug adapter would crash with:

All pipe instances are busy

Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

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

I looked through the code and noticed that Stop() isn't used anywhere else (as far as I can tell). Was going to suggest a Restart() method.

But to be honest, Stop() seems pretty reasonable.

I'm assuming this works with TCP too? (I saw stdio has Stop() as a no-op).

LGTM!

Copy link
Contributor

@rkeithhill rkeithhill left a comment

Choose a reason for hiding this comment

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

LGTM

@TylerLeonhardt TylerLeonhardt merged commit 7116445 into PowerShell:master May 22, 2018
@TylerLeonhardt TylerLeonhardt deleted the fix-named-pipes-crash branch May 22, 2018 14:30
@TylerLeonhardt
Copy link
Member Author

@rjmholt yep! TCP still work :)

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