Fix freeze in config's interrupt trap with some shells
authorRichard Levitte <levitte@openssl.org>
Sun, 13 Mar 2016 10:31:04 +0000 (11:31 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 14 Mar 2016 10:24:55 +0000 (11:24 +0100)
commita87c159f19e998bba660ceba9d01c5fc58bfa60b
tree6607db441a6a50a1b9f5d158d8f15e8555a3bae8
parent9f519addc09b2005fa8c6cde36e3267de02577bb
Fix freeze in config's interrupt trap with some shells

With bash and zsh, the trap on the 5 second read does respond, but
doesn't break out of the read.  What's worse is that it takes away the
5 second timer, and therefore has the read hang indefinitely and
(almost) unbreakable.

Having the trap do 'exit 0' after reseting the tty params has it break
out of read and continue with the configuration.

Other shells do not appear to have the issue described here, but
neither does the extra 'exit 0' appear to harm them.

Reviewed-by: Andy Polyakov <appro@openssl.org>
config