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

Commits on May 1, 2020

  1. fix restarting bot by killing all child processes of bot

    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.
    a-b-r-o-w-n committed May 1, 2020
    Configuration menu
    Copy the full SHA
    83abdb2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40ba9b0 View commit details
    Browse the repository at this point in the history