Set only the internal name for the main threads.
Fixes #17036 for both bitcoind and bitcoin-qt.
After this, e.g. killall works again for either.
Set only the internal name.
Fixes #17036 for both `bitcoind` and `bitcoin-qt`.
Ugh, I suppose this was added to set the internal name for logging. Pushed an alternative approach.
Concept ACK
Tested ACK 07e4bdba3bd46c3a15dedb0a2660453c300643dc, killall bitcoind and killall bitcoin-qt now just works!
Thanks for this; I tripped on this recently and wondered what was the issue. Testing.
ACK 07e4bdba3bd46c3a15dedb0a2660453c300643dc killall bitcoind shuts down bitcoind mainnet/testnet/regtest, killall bitcoin-qt shuts down ./src/qt/bitcoin-qt, tests pass, very light code review. Good idea to add the @note warning. Thanks!
ACK 07e4bdba3bd46c3a15dedb0a2660453c300643dc, I have tested the code on Linux Mint 19.2: killall {bitcoind|bitcoin-qt} works as expected (even with bash completion).
Also, ps outputs for bitcoin-qt (as example) with this PR:
$ ps
PID TTY TIME CMD
3137 pts/0 00:00:00 bash
17072 pts/0 00:00:07 bitcoin-qt
17100 pts/0 00:00:00 ps
$ ps -T
PID SPID TTY TIME CMD
3137 3137 pts/0 00:00:00 bash
17072 17072 pts/0 00:00:00 bitcoin-qt
17072 17073 pts/0 00:00:00 QXcbEventReader
17072 17074 pts/0 00:00:00 bitcoin:disk$0
17072 17075 pts/0 00:00:00 QDBusConnection
17072 17076 pts/0 00:00:00 gmain
17072 17077 pts/0 00:00:00 gdbus
17072 17078 pts/0 00:00:07 b-qt-init
17072 17079 pts/0 00:00:00 b-scriptch.0
17072 17080 pts/0 00:00:00 b-scriptch.1
17072 17081 pts/0 00:00:00 b-scriptch.2
17072 17082 pts/0 00:00:00 b-scheduler
17072 17083 pts/0 00:00:00 b-http
17072 17084 pts/0 00:00:00 b-httpworker.0
17072 17085 pts/0 00:00:00 b-httpworker.1
17072 17086 pts/0 00:00:00 b-httpworker.2
17072 17087 pts/0 00:00:00 b-httpworker.3
17072 17088 pts/0 00:00:00 b-qt-init
17072 17090 pts/0 00:00:00 b-torcontrol
17072 17091 pts/0 00:00:00 b-upnp
17072 17092 pts/0 00:00:00 b-net
17072 17093 pts/0 00:00:00 b-dnsseed
17072 17094 pts/0 00:00:00 b-addcon
17072 17095 pts/0 00:00:00 b-opencon
17072 17096 pts/0 00:00:00 b-msghand
17072 17097 pts/0 00:00:00 QThread
17072 17098 pts/0 00:00:00 QThread
17105 17105 pts/0 00:00:00 ps
ACK
Milestone
0.19.0