stefanberger / swtpm

Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Other
567 stars 136 forks source link

Make stdout unbuffered in swtpm_{setup,localca} #811

Closed rosslagerwall closed 1 year ago

rosslagerwall commented 1 year ago

swtpm_setup and swtpm_localca may be run by a toolstack with log messages going to a pipe via stdout. Set stdout to be unbuffered to avoid log messages being lost if the process terminates unexpectedly.

stefanberger commented 1 year ago

LGTM.