8000 refactor: improve anvil startup and teardown by guidanoli · Pull Request #108 · cartesi/dave · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: improve anvil startup and teardown #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

guidanoli
Copy link
Collaborator

Code inspired from Bug Buster.

Base automatically changed from feature/use-stable-foundry-release to main February 10, 2025 11:58
@guidanoli guidanoli force-pushed the feature/improve-build-anvil-state-script branch from 7ca2af7 to f8f8fdb Compare February 10, 2025 12:00
@@ -9,8 +9,40 @@ rm -f $program_path/anvil_state.json
anvil --disable-code-size-limit --preserve-historical-states --slots-in-an-epoch 1 \
--dump-state $program_path/anvil_state.json > $program_path/_anvil.log 2>&1 &
anvil_pid=$!
sleep 5

trap 'kill $anvil_pid' EXIT
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this needs to at least be something like:

trap 'kill -INT $anvil_pid; wait $anvil_pid' EXIT

@guidanoli
Copy link
Collaborator Author

This has already been addressed by #164.

@guidanoli guidanoli closed this May 21, 2025
@guidanoli guidanoli deleted the feature/improve-build-anvil-state-script branch May 21, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0