Skip to content

Investigate/code clean up ifdef in RemoteSessionNamedPipe.cs #8925

Closed

Description

@TylerLeonhardt

As called out in #8889...

in regards to:

#if !CORECLR // There is only one AppDomain per application in CoreCLR, which would be the default
CreateAppDomainUnloadHandler();
#endif

Paul Higinbotham (@PaulHigin) said:

This code attempts to dispose the default pipe server on process (appdomain) exit, but it is disabled for CORECLR and so is dead code. This code should be removed or fixed to dispose both the default and custom pipe server objects.

Activity

  1. added
    Issue-Question
    on Feb 20, 2019
  2. iSazonov commented on Feb 21, 2019

    @iSazonov
    Collaborator

    .Net Core has "context" as appdomain replacement (and 3.0 will support assembly unload.)

  3. added
    Issue-Code Cleanup
    and removed
    Issue-Question
    on Feb 21, 2019
  4. PaulHigin commented on Feb 21, 2019

    @PaulHigin
    Contributor

    I don't mean that we need to dispose on AppDomain exit (since there is none) but that we should consider disposing on process exit (AppDomain.CurrentDomain.ProcessExit event is supported now). We don't do it now but should look into whether it is needed, both for Windows and Linux platforms to ensure named pipe is cleaned up.

  5. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  6. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  7. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  8. added
    Resolution-No Activity
    on Nov 16, 2023
  9. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Code CleanupResolution-No Activity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions