From b1600a80d26e91ece6d9b20a72dc2b0c1f66d271 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 7 Jul 2020 21:56:19 -0400 Subject: disable pinentry timeouts --- src/pinentry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pinentry.rs b/src/pinentry.rs index 9d866de..a215547 100644 --- a/src/pinentry.rs +++ b/src/pinentry.rs @@ -13,9 +13,9 @@ pub async fn getpin( .stdin(std::process::Stdio::piped()) .stdout(std::process::Stdio::piped()); let opts = if let Some(tty) = tty { - opts.args(&["-T", tty]) + opts.args(&["-T", tty, "-o", "0"]) } else { - opts + opts.args(&["-o", "0"]) }; let mut child = opts.spawn().context(crate::error::Spawn)?; // unwrap is safe because we specified stdin as piped in the command opts -- cgit v1.2.3-54-g00ecf