This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch linaro/2.21/master updated. glibc-2.21-52-g136c42b


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, linaro/2.21/master has been updated
       via  136c42bf121185dd2cecd012fa614b24303b8497 (commit)
      from  43765a182c200e9c43419568b9222e2b8b097050 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=136c42bf121185dd2cecd012fa614b24303b8497

commit 136c42bf121185dd2cecd012fa614b24303b8497
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Apr 11 15:08:02 2017 -0300

    posix: Add cleanup on the trap list for globtest.sh
    
    This patch prevents lingering files for SIGSEGV failures by adding
    a cleanup handler on trap handler.  Checked on x86_64-linux-gnu.
    
    	* posix/globtest.sh: Add cleanup routine on trap 0.
    
    Cherry-pick of 4fee33f.

diff --git a/ChangeLog b/ChangeLog
index d040992..e2ee914 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+	* posix/globtest.sh: Add cleanup routine on trap 0.
+
 2017-02-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* malloc/arena.c (__malloc_fork_lock_parent): Add internal_function
diff --git a/posix/globtest.sh b/posix/globtest.sh
index 7c9f590..f403505 100755
--- a/posix/globtest.sh
+++ b/posix/globtest.sh
@@ -47,7 +47,12 @@ testout=${common_objpfx}posix/globtest-out
 rm -rf $testdir $testout
 mkdir $testdir
 
-trap 'chmod 777 $testdir/noread; rm -fr $testdir $testout' 1 2 3 15
+cleanup() {
+    chmod 777 $testdir/noread
+    rm -fr $testdir $testout
+}
+
+trap cleanup 0 HUP INT QUIT TERM
 
 echo 1 > $testdir/file1
 echo 2 > $testdir/file2
@@ -795,8 +800,6 @@ if test $failed -ne 0; then
 fi
 
 if test $result -eq 0; then
-    chmod 777 $testdir/noread
-    rm -fr $testdir $testout
     echo "All OK." > $logfile
 fi
 

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

Summary of changes:
 ChangeLog         |    4 ++++
 posix/globtest.sh |    9 ++++++---
 2 files changed, 10 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]