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

fix: bot content not updating after restart #2861

Merged
merged 2 commits into from
May 1, 2020

Conversation

a-b-r-o-w-n
Copy link
Contributor

@a-b-r-o-w-n a-b-r-o-w-n commented May 1, 2020

closes #1747

Description

Calling child_process.kill() will kill that process but does not kill all processes spawned by that process. We need to run the bot in a detached process which gets its own process group, then call process.kill(-child.pid) to kill all porcesses in that group.

Task Item

Screenshots

Calling `child_process.kill()` will kill that process but does not kill all processes spawned by that process. We need to run the bot in a detached process which gets its own process group, then call `process.kill(-child.pid)` to kill all porcesses in that group.
@github-actions
Copy link

github-actions bot commented May 1, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling 40ba9b0 on abrown/fix/bot-not-updating into 97c425e on master.

@cwhitten cwhitten merged commit 2197497 into master May 1, 2020
@cwhitten cwhitten deleted the abrown/fix/bot-not-updating branch May 1, 2020 19:01
@boydc2014
Copy link
Contributor

boydc2014 commented May 3, 2020

This is not compatible in windows, see nodejs/node#3617.

Also, using detached = true is causing the process.on('data') can't get fired, and thus the resolve is never called, so the request never finished.

I didn't see this dotnet run process is creating sub-processes, is it creating sub processes in Mac?

lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
)

Calling `child_process.kill()` will kill that process but does not kill all processes spawned by that process. We need to run the bot in a detached process which gets its own process group, then call `process.kill(-child.pid)` to kill all porcesses in that group.
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.

3 participants