From 83fc3efda2fb7bdcf735e6de326e5a7be0578126 Mon Sep 17 00:00:00 2001 From: Michael Mikonos <127171689+mknos@users.noreply.github.com> Date: Wed, 18 Dec 2024 09:49:35 +0800 Subject: [PATCH] lock: re-enable term echo * When testing lock with a 1 minute timeout, my terminal text was invisible after lock times out and exits * In the alarm handler, be careful to enable echo before the program finishes --- bin/lock | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/lock b/bin/lock index e0d2c69a..93dfdda6 100755 --- a/bin/lock +++ b/bin/lock @@ -164,6 +164,7 @@ sub handler if ( $sig eq 'ALRM' ) { print "lock: timeout\n"; + echo(); exit 0; } else