Skip to content

fix(exec): temp files are now cleaned up#354

Merged
ariporad merged 1 commit intomasterfrom
fix-exec-temp-files
Feb 14, 2016
Merged

fix(exec): temp files are now cleaned up#354
ariporad merged 1 commit intomasterfrom
fix-exec-temp-files

Conversation

@nfischer
Copy link
Copy Markdown
Member

Fixes #353

The issue had to do with an exception being thrown, causing execSync() to skip the cleanup. This seems to fix the issue for each version of node we support

@nfischer nfischer added fix Bug/defect, or a fix for such a problem exec Issues specific to the shell.exec() API labels Feb 11, 2016
@nfischer nfischer added this to the v0.7.0 milestone Feb 11, 2016
@nfischer
Copy link
Copy Markdown
Member Author

This also fixes an issue where shell.error() would sometimes indicate success, even if the process exited with non-zero status (like 12, for example).

@nfischer
Copy link
Copy Markdown
Member Author

@ariporad this should be ready for review

@ariporad
Copy link
Copy Markdown
Contributor

LGTM!

ariporad added a commit that referenced this pull request Feb 14, 2016
fix(exec): temp files are now cleaned up
@ariporad ariporad merged commit 7531d3a into master Feb 14, 2016
@ariporad ariporad deleted the fix-exec-temp-files branch February 14, 2016 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exec Issues specific to the shell.exec() API fix Bug/defect, or a fix for such a problem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

exec() doesn't clean up all temp files

2 participants