aboutsummaryrefslogtreecommitdiffstats
path: root/src/cerberus.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-08 14:38:29 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-08 14:38:29 +0100
commitee5bdee69a26d1bcf624dc1f91905bae05db528e (patch)
tree53b9ce56062012c789dd82af1b9ee1cfab4c81ee /src/cerberus.c
parentchange that the username has been specified (diff)
downloadlibpassphrase-ee5bdee69a26d1bcf624dc1f91905bae05db528e.tar.gz
libpassphrase-ee5bdee69a26d1bcf624dc1f91905bae05db528e.tar.bz2
libpassphrase-ee5bdee69a26d1bcf624dc1f91905bae05db528e.tar.xz
turn off timeout when the passphrase has been entered
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/cerberus.c')
-rw-r--r--src/cerberus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cerberus.c b/src/cerberus.c
index fb34321..435a3a7 100644
--- a/src/cerberus.c
+++ b/src/cerberus.c
@@ -145,6 +145,8 @@ int main(int argc, char** argv)
printf("\n");
}
+ /* Passphrase entered, turn off timeout */
+ alarm(0);
/* Wipe the passphrase from the memory */
if (skip_auth == 0)