Skip to content

Commit

Permalink
fix: Update the killAgd "wait for pid" behavior
Browse files Browse the repository at this point in the history
The new approach works even when `agd` is not a child process of the current shell.

cf. https://github.com/Agoric/agoric-sdk/pull/9563/files#r1649820976
  • Loading branch information
gibson042 committed Jul 3, 2024
1 parent f38882e commit 6f2843d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ killAgd() {
AGD_PID=$(cat $HOME/.agoric/agd.pid)
kill $AGD_PID
rm $HOME/.agoric/agd.pid
wait $AGD_PID || true
# cf. https://stackoverflow.com/a/41613532
tail --pid=$AGD_PID -f /dev/null || true
}

provisionSmartWallet() {
Expand Down

0 comments on commit 6f2843d

Please sign in to comment.