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

[BUG]: Dangling processes on exit with --watch-stdin and multiple configurations #885

Closed
LostKobrakai opened this issue May 18, 2019 · 4 comments

Comments

@LostKobrakai
Copy link

Bug report

What is the current behavior?
Starting webpack with --watch-stdin doesn't properly cleanup after itself. My webpack config returns a function, which returns two configuration objects. When starting webpack via my backend it starts 5 node processes, but when stopping the backend it leaves one node process running. It works when only one configuration object is returned by the function.

If the current behavior is a bug, please provide the steps to reproduce.

  • Use a webpack config returning two configurations
  • Start webpack with --watch-stdin
  • Close stdin

What is the expected behavior?
All processes to be properly stopped without any dangling processes, like it does for only a single configuration.

Other relevant information:
webpack version: 4.31.0
Node.js version: 11.9.0
Operating System: MacOS X
Additional tools:

@LostKobrakai LostKobrakai changed the title Dangling processes on exit with --watch-sdtin and multiple configurations Dangling processes on exit with --watch-stdin and multiple configurations May 18, 2019
@hiroppy
Copy link
Member

hiroppy commented May 18, 2019

Could you submit the reproducible repo?

@LostKobrakai
Copy link
Author

@sokra sokra transferred this issue from webpack/webpack May 20, 2019
@evenstensberg
Copy link
Member

I don't think it's going to be a priority fixing this for the v3 version, but will leave open as this might be an upcoming issue with v4

@evenstensberg evenstensberg changed the title Dangling processes on exit with --watch-stdin and multiple configurations [BUG]: Dangling processes on exit with --watch-stdin and multiple configurations Oct 31, 2019
@alexander-akait
Copy link
Member

Fixed in master, please use --watch-options-stdin, fixed for serve too

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

No branches or pull requests

5 participants