Skip to content
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

Cleanup/separate class for swtpm2 #38

Merged
merged 7 commits into from
Jul 31, 2023

Conversation

smoser
Copy link
Contributor

@smoser smoser commented Jul 28, 2023

separate the control of tpm2 into a class.
might be nice to do the same to qemu.

I think it was just a think-o mistake.  After the timeout expires,
then kill the process with the given signal.  After 5 more seconds
if the thread is still alive then kill it with SIGKILL.
If data was None, the 'indent' wouldn't work correctly.
This isolates the swtpm interaction into an swtpm2 class.
It makes it much easier to work with.
Serge didn't like the "join"s that I had. Instead, use a .format
style template.
This just adds a common do_communicate which will handle the
timeout/send-signal/delay/kill function that was in both
subp and the swtpm wrapper.
Allow the caller of the swtpm to call 'stop' with a specific
signal.
This way you can see time between events.
@smoser smoser force-pushed the cleanup/separate-class-for-swtpm2 branch from c99225e to caa24ce Compare July 31, 2023 14:59
@smoser smoser merged commit fe3426c into puzzleos:main Jul 31, 2023
1 check passed
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