-
Notifications
You must be signed in to change notification settings - Fork 8
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
Prevent bin process from crashing on sigint when sent during npm init dialog #55
base: master
Are you sure you want to change the base?
Conversation
@devinivy heyo! ran into some funkiness here due to signal-handling (or lack thereof) on Windows. To resolve, I'm thinking
Assuming my changes are even on the right track, how does that plan sound to you? For background / explanation of the above, I think / hope the following are true:
|
@zemccartney apologies for neglecting this! I like that plan. But also— I'm down to land this as-is, since it seems like an improvement to me. Do you have any thoughts/guidance on it? |
@devinivy ah! jeez, yea, I completely spaced here! But I believe someone at my office has a fairly current Windows machine now, I should be able to test this out there, report back. I could shoot to do that this week, which hopefully means just landing this as-is with the assurance that ctrl-c'ing out of the new dialog works as expected on Windows (though could drop in a TODO / peel off a separate issue if any further remediation's needed). Does that work ok? |
Addresses #42
Now, on starting the npm init dialog, we ignore
SIGINT
on our main process, so when you press ctrl + C (or however else you fire off aSIGINT
signal), as that dialog prompts you to do to quit at anytime, instead of the main process exiting, theSIGINT
reaches the npm init child process spawned by the new command, which then exits.