diff options
author | Rob Austein <sra@hactrn.net> | 2016-12-21 15:42:09 -0500 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-12-21 15:42:09 -0500 |
commit | a86b6d255187a0a6a91916c14b0da49210fbed91 (patch) | |
tree | 192c4e84901fd02a34425ca82a6e9a556367d3cf /stm-init.c | |
parent | d492caaf91d37d7623a57e2d77d3d61fd8ffbda0 (diff) |
Rewrite core upload loop to simplify and fix race conditions.
The main loop in cryptech_upload:send_file() was much more complicated
than necessary, and also contained some hidden assumptions about
serial I/O timing which happened to fail on the first two machines I
tested. We already had a perfectly good buffered-input function, so
rewrote to use that, and simplified control structure in the process.
In theory, the new code should work in any environment where the old
one did, but this has not yet been confirmed.
Diffstat (limited to 'stm-init.c')
0 files changed, 0 insertions, 0 deletions