commit | cfeea1b1c032ada3c5997dd6e0a3a7350ccb4af8 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Fri Jun 23 22:12:26 2023 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Sat Jun 24 16:01:33 2023 -0400 |
tree | 65d64ee788a8b9e9c4a4819e807f5290431d6dc8 | |
parent | 48dffac18247a9f573e8b163f1fbdb2a32d1328a [diff] |
swtpm_setup: Add poll() after write() and before read() to detect errors In case swtpm does not start properly the write() to it may work but then the read() gets stuck. Detect a failed swtpm by adding a poll() before the read(). Use some extended durations considering possibly busy systems. A terminating swtpm instance can be caused when an unacceptable profile is passed. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>