-
Notifications
You must be signed in to change notification settings - Fork 903
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
Wait for child processes to complete (if parent process exited early) #725
Comments
Fixes are good. 👍 Please ensure that you review the CONTRIBUTING document (in its entirety, we are very particular, especially with git commit messages) to be sure everything is good and things can be processed faster. https://github.com/chocolatey/choco/blob/master/CONTRIBUTING.md |
Fix for installers which exit immediately, and spawn lingering child processes, which may carry on additional installation tasks. Solution first queries for child processes whose parent process ID matches the installer process. Then, recursively queries for other active processes related to those children. Finally, wait for each process to exit.
If you run the setup with the 0.9.10 beta, do you still run into this issue? I think it might. |
Would it be easy to install the beta versions for general users? I may wish to use a beta version until an official release with #526 comes. The changes in #526 seem to solve the underlying issue for me. Based on a quick test where I replaced the Start-ChocolateyProcessAsAdmin.ps1 manually. The version here exhibits the defect: Whereas, the version here works perfectly fine: Consider the issue closed and reject the pull-request, then? |
|
I confirm v0.9.10.2 of Chocolatey resolves this issue. No further action needed. |
What's the status of this? I'm running in to the same problem with a custom made package for offline visual studio installation. using choco 0.10.8. |
While you're waiting for the actual Chocolatey update, you can easily kludge your internal packages with https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/start-sleep?view=powershell-6 |
I made a fix for the below... Will make a pull-request for review in a moment.
What You Are Seeing?
Install-ChocolateyInstallPackage & Start-ChocolateyProcessAsAdmin exited prematurely during one of my installation packages (an privately maintained MATLAB installer). This causes unexpected behavior since:
Upon investigation, I discovered the installer process exited immediately, however, the installer continued installation tasks as independent child processes.
What is Expected?
The Start-ChocolateyProcessAsAdmin must look for child processes to the installation -- and wait for these to complete.
How Did You Get This To Happen? (Steps to Reproduce)
Used "Install-ChocolateyInstallPackage" with MATLAB R2015B setup.exe
Output Log
Nothing helpful to report here.
The text was updated successfully, but these errors were encountered: