Message when Ctrl+C pressed #9901

issue negatratoron opened this issue on March 2, 2017
  1. negatratoron commented at 6:26 AM on March 2, 2017: none

    I just ran bitcoind for the first time, and tried to exit with Ctrl+C. It appeared to be stuck, so I killed the process. Before I could start it again I had to delete the lock file. However, later I found out bitcoind does handle sigint, and exits.

    It would be nice if it displaced an "Exiting..." message so that you know it is busy exiting.

  2. fanquake added the label GUI on Mar 2, 2017
  3. fanquake commented at 6:33 AM on March 2, 2017: member

    What operating system are you using, and which version of Bitcoin-Core?

    You should have seen a message similar to this: exit

  4. negatratoron commented at 6:35 AM on March 2, 2017: none

    v0.13.2, and gentoo linux. There was no such window visible. I was running bitcoind, not bitcoin-qt.

  5. jonasschnelli removed the label GUI on Mar 2, 2017
  6. laanwj commented at 9:20 AM on March 2, 2017: member

    Agree this would be useful. Due to specifics of UNIX signal handling, this may not be as trivial as it seems to implement. One cannot just LogPrintf from the signal handler. The Qt shutdown detection works by periodically polling a global shutdown flag. I guess this could work similarly.

  7. laanwj added the label Docs and Output on Mar 2, 2017
  8. matlongz commented at 11:51 PM on October 13, 2019: none

    Is it easy to replicate the issue? Does it always happen when bitcoind is run for the first time? Is it specific to gentoo linux? I tried replicating the issue a few times on Ubuntu. While the message "Shutdown requested. Exiting." is displayed only when exiting very early in the startup process, "Shutdown: In progress..." was consistently displayed every time.

  9. MarcoFalke closed this on Apr 27, 2020

  10. MarcoFalke locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me