Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

[WIP] fix for concurrent webpack config "channel closed" error #296

Closed
wants to merge 1 commit into from

Conversation

zspecza
Copy link
Contributor

@zspecza zspecza commented Dec 10, 2016

I really know nothing about these different signals as I'm more of a web dev, so right now these changes are a bit of a hack - but it does prevent the "channel closed" error in #287.

I understand that leaving a forked process like this long running is a bit of a bad practice though, so I'm happy to receive any input on how to improve this :)

/cc @s-panferov does this by any chance indicate a path to a proper fix in your mind?

@zspecza zspecza force-pushed the concurrent-webpack-fix branch from d49c5f4 to 4bb3ba5 Compare December 10, 2016 21:30
When exporting an array of configs from webpack.config.js, atl crashes.
The error message is "channel closed", indicating that a forked child
process is dying too soon. This commit changes the Checker class such
that it's kill method sends a SIGTERM to the child process rather
than a SIGKILL. The child process intercepts this signal and
ignores it to ensure it is kept alive.

Closes s-panferov#287
@zspecza zspecza force-pushed the concurrent-webpack-fix branch from 4bb3ba5 to 1692049 Compare December 10, 2016 21:33
@s-panferov
Copy link
Owner

@declandewet thanks. I think that I've found a little bit better way to fix this in #297

@s-panferov s-panferov closed this Dec 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants