Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Bot restarting keeps and hitting enter leads to the process running in the background #52

Open
Cpt-Dingus opened this issue Nov 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Cpt-Dingus
Copy link
Collaborator

As the title says, running /bot restart, then hitting enter in the console leads to a new prompt showing up and the bot running in the background indefinitely.

@Cpt-Dingus Cpt-Dingus added the bug Something isn't working label Nov 10, 2023
@zleyyij
Copy link
Collaborator

zleyyij commented Nov 10, 2023

This is expected behavior, when the process terminates, a new one is started, and it inherits the same stdout handle, but because the process terminates, your shell returns a new prompt.

It could possibly be mitigated by creating a harness process, and having it restart the child process. This would also fix the issue where the docker container terminates when the process exits.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants