kubo/cmd/ipfs/util
Andrew Gillis 72280f31d4
Some checks failed
CodeQL / codeql (push) Has been cancelled
Docker Check / lint (push) Has been cancelled
Docker Check / build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Spell Check / spellcheck (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled
fix ctrl-c prompt during run migrations prompt (#10947)
* fix ctrl-c prompt during run migrations prompt

At "Run migrations" prompt, hitting ctrl-c does not show the "(Hit ctrl-c again to force-shutdown the daemon.)" prompt, even though a 2nd ctrl-c does cause the daemon to exit.

The problem is that the goroutine that displays the prompt only run after the prompt to "Run migrations", so hitting ctrl-c during the "Run migrations" prompt does not show the "(Hit ctrl-c again to force-shutdown the daemon.)" prompt.

This PR fixes the problem by starting the goroutine to display the "(Hit ctrl-c again to force-shutdown the daemon.)" prompt sooner, before the "Run mirgarions" prompt. Additionally, this PR also disables showing the ctrl-c prompt if the daemon function has already exited, in which case only the exit message should be shown.

Closes #3157

* exit immediately if ctrl-c during migration prompt
2025-09-04 16:30:12 -07:00
..
signal_wasm.go main: move InterruptHandler to util 2018-12-26 12:39:59 -08:00
signal.go fix ctrl-c prompt during run migrations prompt (#10947) 2025-09-04 16:30:12 -07:00
ui_windows.go cmd: ipfs handle GUI environment on Windows 2020-03-12 16:15:23 -07:00
ui.go go fmt 2022-05-03 14:09:38 -04:00
ulimit_freebsd.go go fmt 2022-05-03 14:09:38 -04:00
ulimit_test.go go fmt 2022-05-03 14:09:38 -04:00
ulimit_unix.go go fmt 2022-05-03 14:09:38 -04:00
ulimit_windows.go go fmt 2022-05-03 14:09:38 -04:00
ulimit.go chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00