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

Make sure the build traps SIGINT and SIGTERM for cleanup. #971

Merged
merged 1 commit into from
Jun 10, 2014

Conversation

WMeldon
Copy link
Contributor

@WMeldon WMeldon commented Jun 10, 2014

Exiting from ember server stopped cleaning up the ./tmp directory after exit, which means the directory would expand in size until manually deleted.

_MIGHT_ have caused some EMFILE errors as well. I have no proof. Though.

Traces back to a mis-refactor from https://github.com/stefanpenner/ember-cli/blob/v0.0.28/lib/utilities/build-builder.js#L16

stefanpenner added a commit that referenced this pull request Jun 10, 2014
Make sure the build traps `SIGINT` and `SIGTERM` for cleanup.
@stefanpenner stefanpenner merged commit c454ba1 into ember-cli:master Jun 10, 2014
@rwjblue rwjblue mentioned this pull request Jun 10, 2014
@jgwhite jgwhite mentioned this pull request Jun 11, 2014
6 tasks
@WMeldon
Copy link
Contributor Author

WMeldon commented Jun 11, 2014

@stefanpenner I spent some time writing out a unit test for this and (as always) ended up digging into more files than I would have liked. Tests and changes are in this commit. Thought you may want to give it a look.

@rjackson's solution (#973) covers more or less the same thing with less changes and probably more accuracy at the cost of taking slightly longer.

@WMeldon WMeldon deleted the sigint-trapping branch June 11, 2014 12:26
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.

2 participants