Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: Add SIGHUP and SIGTERM handling to coder server #3543

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

Merged
merged 3 commits into from
Aug 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: Return the correct err
  • Loading branch information
mafredri committed Aug 18, 2022
commit cc0b7bf9e526727b0b7e70c53691e4052f2fe8fe
2 changes: 1 addition & 1 deletion cli/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ func server() *cobra.Command {
var exitErr error
select {
case <-notifyCtx.Done():
exitErr = ctx.Err()
exitErr = notifyCtx.Err()
_, _ = fmt.Fprintln(cmd.OutOrStdout(), cliui.Styles.Bold.Render(
"Interrupt caught, gracefully exiting. Use ctrl+\\ to force quit",
))
Expand Down