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

Server: Hit Ctrl+C twice to exit #5734

Merged
merged 6 commits into from
Feb 28, 2024

Conversation

ngxson
Copy link
Collaborator

@ngxson ngxson commented Feb 26, 2024

While it's nice to have the server properly shutdown on SIGINT, it sometimes blocks the development and force the developer to use killall server

This PR propose a quite sketchy solution: If the SIGINT is received the second time, we just force exit the process.

Co-authored-by: Jared Van Bortel <[email protected]>
@ggerganov ggerganov merged commit a693bea into ggerganov:master Feb 28, 2024
59 checks passed
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Mar 13, 2024
* server: twice ctrl+C to exit

* std::atomic_flag

* sigint: message

* sigint: stderr

* Update examples/server/server.cpp

Co-authored-by: Jared Van Bortel <[email protected]>

---------

Co-authored-by: Jared Van Bortel <[email protected]>
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
* server: twice ctrl+C to exit

* std::atomic_flag

* sigint: message

* sigint: stderr

* Update examples/server/server.cpp

Co-authored-by: Jared Van Bortel <[email protected]>

---------

Co-authored-by: Jared Van Bortel <[email protected]>
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.

4 participants