Skip to content

[release/6.0-rc1] [SPA] Ensure spawned NPM processes are terminated when the dotnet process is ungracefully terminated#35701

Merged
Pilchie merged 4 commits intorelease/6.0-rc1from
backport/pr-35591-to-release/6.0-rc1
Aug 25, 2021
Merged

[release/6.0-rc1] [SPA] Ensure spawned NPM processes are terminated when the dotnet process is ungracefully terminated#35701
Pilchie merged 4 commits intorelease/6.0-rc1from
backport/pr-35591-to-release/6.0-rc1

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Aug 25, 2021

Backport of #35591 to release/6.0-rc1

/cc @javiercn

Customer Impact

node processes are left open after stopping the application in VS 4 Mac.

Testing

Manual

Risk

Low.

The fix just launches a shell script that watches for the main process and when it detects its gone, it tries to kill all the process spawned by the spa process. In the worst case scenario, the processes are left alive, which is the current status quo.

We do have similar code in windows to account for when VS or someone else kills the app ungracefully

@ghost ghost added the area-runtime label Aug 25, 2021
@Pilchie Pilchie added the Servicing-approved Shiproom has approved the issue label Aug 25, 2021
@Pilchie
Copy link
Copy Markdown
Member

Pilchie commented Aug 25, 2021

This was approved by Tactics over email.

Copy link
Copy Markdown
Member

@Pilchie Pilchie left a comment

Choose a reason for hiding this comment

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

Approving based on review of main PR.

@Pilchie Pilchie merged commit 9ba160d into release/6.0-rc1 Aug 25, 2021
@Pilchie Pilchie deleted the backport/pr-35591-to-release/6.0-rc1 branch August 25, 2021 17:21
@ghost ghost added this to the 6.0-rc1 milestone Aug 25, 2021
captainsafia pushed a commit that referenced this pull request Aug 26, 2021
* Update dependencies from https://github.com/dotnet/efcore build 20210824.20 (#35675)

[release/6.0-rc1] Update dependencies from dotnet/efcore

* [release/6.0-rc1] Update dependencies from dotnet/efcore dotnet/runtime (#35677)

[release/6.0-rc1] Update dependencies from dotnet/efcore dotnet/runtime

* Update dependencies from https://github.com/dotnet/efcore build 20210824.28 (#35681)

[release/6.0-rc1] Update dependencies from dotnet/efcore

* [release/6.0-rc1] Don't cache CanReuse value (#35676)

* Don't cache CanReuse value

* Comment on when to use CanReuse

Co-authored-by: Sebastien Ros <sebastienros@gmail.com>

* Fix key comparison for more than 10 elements in AdaptiveCapacityDictionary (#35705)

Co-authored-by: Brennan <brecon@microsoft.com>

* [release/6.0-rc1] [SPA] Ensure spawned NPM processes are terminated when the dotnet process is ungracefully terminated (#35701)

* Adds a script to terminate the spawned NPM processes automatically when the host dotnet process is ungracefully terminated.

Co-authored-by: Javier Calvarro Nelson <jacalvar@microsoft.com>

* Update dependencies from https://github.com/dotnet/runtime build 20210825.7 (#35726)

[release/6.0-rc1] Update dependencies from dotnet/runtime

* Move IResultsExtension to M.A.Http namespace (#35717)

Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sebastien Ros <sebastienros@gmail.com>
Co-authored-by: Brennan <brecon@microsoft.com>
Co-authored-by: Javier Calvarro Nelson <jacalvar@microsoft.com>
Co-authored-by: Safia Abdalla <safia@microsoft.com>
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares Servicing-approved Shiproom has approved the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants