This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] posix: Add SIGSEGV on the trap list for globtest.sh
- From: Florian Weimer <fweimer at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 11 Apr 2017 23:12:59 +0200
- Subject: Re: [PATCH] posix: Add SIGSEGV on the trap list for globtest.sh
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 2B9FD81255
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 2B9FD81255
- References: <1491934157-30940-1-git-send-email-adhemerval.zanella@linaro.org> <ddc1ca88-b021-6e89-16e9-edc22dc251fb@redhat.com> <d77536bd-5ede-e2db-506c-76759d08eb3a@linaro.org>
On 04/11/2017 09:59 PM, Adhemerval Zanella wrote:
On 11/04/2017 15:22, Florian Weimer wrote:
On 04/11/2017 08:09 PM, Adhemerval Zanella wrote:
-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
Does the shell really receive the signal? Why not use “0”?
It does not off course since it is not the shell that is actually generating
the segfault.
Well, the shell uses globbing, too, so who knows. :)
I will rewrite the patch.
Thanks. Using 0 is probably the correct choice, then.
Florian