This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] posix: Add SIGSEGV on the trap list for globtest.sh
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Tue, 11 Apr 2017 15:09:17 -0300
- Subject: [PATCH] posix: Add SIGSEGV on the trap list for globtest.sh
- Authentication-results: sourceware.org; auth=none
This patch prevents lingering files for SIGSEGV failutes. Checked
on x86_64.
* posix/globtest.sh: Add SIGSEGV for the signal to act on a trap.
---
ChangeLog | 4 ++++
posix/globtest.sh | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/posix/globtest.sh b/posix/globtest.sh
index f9cc80b..cb7d748 100755
--- a/posix/globtest.sh
+++ b/posix/globtest.sh
@@ -47,7 +47,7 @@ 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
+trap 'chmod 777 $testdir/noread; rm -fr $testdir $testout' HUP INT QUIT SEGV TERM
echo 1 > $testdir/file1
echo 2 > $testdir/file2
--
2.7.4