Package: src:pinentry
Version: 1.1.0-4
Severity: wishlist

in debian/tests/simple-tty in pinentry, we just added a 2.0s sleep to
avoid a race condition, where the password would be entered before
pinentry-tty had finished writing out its prompt.

It would be nice to instead have that test read the pty and wait for the
prompt before sending the password, rather than an arbitrary 2s sleep.

this would make the normal test run faster (avoiding an arbitrary 2s
timeout) and still avoid the worst race conditions.  I don't know
whether a final race condition would remain though: there might be a gap
if pinentry-tty is suspended by the OS between writing out the prompt
and listening on the pty.  That would be "interesting" to discover.

       --dkg

Attachment: signature.asc
Description: PGP signature

Reply via email to