[openssl-commits] [openssl] OpenSSL_1_1_0-stable update

Richard Levitte levitte at openssl.org
Tue Jul 24 20:15:37 UTC 2018


The branch OpenSSL_1_1_0-stable has been updated
       via  36e732b00c8a22d50f88ee59d8790d5667ff72e2 (commit)
       via  f65389acaad600e816dcd9c231ea70d505d027a4 (commit)
       via  64eae7475e6caa669cd6369770ba4853ecaff8d1 (commit)
      from  bb8befc66003c765c227f01b1b4d60e19db86fc7 (commit)


- Log -----------------------------------------------------------------
commit 36e732b00c8a22d50f88ee59d8790d5667ff72e2
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue Jul 24 21:46:55 2018 +0200

    Configure death handler: instead of printing directly, amend the message
    
    This is done by calling die again, just make sure to reset the __DIE__
    handler first.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/6776)
    
    (cherry picked from commit eb807d5383fd228a5c4cf9afc2fec487e0d22cee)

commit f65389acaad600e816dcd9c231ea70d505d027a4
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue Jul 24 19:29:49 2018 +0200

    Configure death handler: remember to call original death handler
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/6776)
    
    (cherry picked from commit 88accfe6dccf904fec5a17db4a59cd2c4c480382)

commit 64eae7475e6caa669cd6369770ba4853ecaff8d1
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue Jul 24 19:29:06 2018 +0200

    Configure death handler: bail out early when run in eval block
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/6776)
    
    (cherry picked from commit 1a6c30029802179ebe0ec1eedfdc9d78bb6dc4dd)

-----------------------------------------------------------------------

Summary of changes:
 Configure | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Configure b/Configure
index 19bab07..7e482f7 100755
--- a/Configure
+++ b/Configure
@@ -2163,14 +2163,19 @@ exit(0);
 # Death handler, to print a helpful message in case of failure #######
 #
 sub death_handler {
+    die @_ if $^S;              # To prevent the added message in eval blocks
     my $build_file = $target{build_file} // "build file";
-    print STDERR <<"_____";
+    my @message = ( <<"_____", @_ );
 
 Failure!  $build_file wasn't produced.
 Please read INSTALL and associated NOTES files.  You may also have to look over
 your available compiler tool chain or change your configuration.
 
 _____
+
+    # Dying is terminal, so it's ok to reset the signal handler here.
+    $SIG{__DIE__} = $orig_death_handler;
+    die @message;
 }
 
 # Configuration file reading #########################################


More information about the openssl-commits mailing list