summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2017-08-31 22:48:03 +0200
committerAndy Polyakov <appro@openssl.org>2017-09-02 20:49:47 +0200
commit8a4460c240cfe111de8bfee7995da76e1f0459fc (patch)
tree7470cf4b568d21eb2df06743204941dfd5fd5060 /config
parent26810b5eaffad3fa6d320600d8ea36e2ed86ff7c (diff)
downloadopenssl-new-8a4460c240cfe111de8bfee7995da76e1f0459fc.tar.gz
config: get "stty technique" working again on MacOS X.
Addresses GH#2167. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4311)
Diffstat (limited to 'config')
-rwxr-xr-xconfig4
1 files changed, 1 insertions, 3 deletions
diff --git a/config b/config
index c8886de431..609ed2fba9 100755
--- a/config
+++ b/config
@@ -502,9 +502,7 @@ case "$GUESSOS" in
echo " invoke 'KERNEL_BITS=64 $THERE/config $options'."
if [ "$DRYRUN" = "false" -a -t 1 ]; then
echo " You have about 5 seconds to press Ctrl-C to abort."
- # The stty technique used elsewhere doesn't work on
- # MacOS. At least, right now on this Mac.
- sleep 5
+ (trap "stty `stty -g`; exit 1" 2; stty -icanon min 0 time 50; read waste; exit 0) <&1 || exit
fi
fi
if [ "$ISA64" = "1" -a "$KERNEL_BITS" = "64" ]; then