Page MenuHomePhabricator

[devtools] Use a trap to cleanup bitcoind instead of a background process
ClosedPublic

Authored by jasonbcox on Jun 4 2020, 22:28.

Details

Summary

This improves code locality, making it easier to reason about.
This also removes an unnecessary looping sleep.

Test Plan
./bitcoind-exit-on-log.sh --grep 'New outbound peer connected' --params "-datadir=/home/jasonbcox/.bitcoin"
ps aux | grep bitcoind

Verify no dangling processes

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable