From patchwork Tue Apr 11 18:09:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 749591 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w2Znq40lnz9s8G for ; Wed, 12 Apr 2017 04:09:35 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="D45RUXap"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=xpKwpP4C4hg3eSo8NkSkqDTV8hfNDOIfuh7tnIQx9kwLQXelUihln RFYisI3AzkI6ujLIPBBVaLJqxEiXnO6yYTHeb+h/9+f/3XdBhi19WZk9XEKChWIg JiCBNsYrnuFILYnQV6wTjn9sznD+JxDo18GoaIYvlH2UMI/2ooRDGY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=x0QwGd250kfXiSbmm/An3kh1XYw=; b=D45RUXapmtBuCG7TxXh2FR1Izc+h 4DW6L5VZogdWlEGFIgBYVnHw75NqV09HMc9Kg8otgJREfPhoR/PCPUtYsaphyzyL zb2bHxDRMUJjIirV1ADxo0us3G+uWAeJyT0+APbdHmWf1NyzDqWMd+/2rTcLFF8A xvE98Ex23VKYySI= Received: (qmail 125300 invoked by alias); 11 Apr 2017 18:09:27 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 125236 invoked by uid 89); 11 Apr 2017 18:09:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=act X-HELO: mail-qt0-f172.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=rPAaIjomr5y1+Dn9164BdR84f2FCMlMnkvnUggZlBrw=; b=parnGz3XNLHgOr5ZgiuDADFMldDQB5Lm1Kn8peZVC4bIxxOjYwhEcv4p/CnNg1xPfs FpVG6jgRzVFLfXSXtDwuM/KaL00zXkjt3Mq7k+NbpguRUZxwfYoPj40eydJWFJ2UqFzG Ta83yP60iCde4pO6FsAfcpeZU07tfgDlKkGiLKfHAbp23Fvr+9ygHD9foObZI3/ZMUU+ SM6JP3RlPp3oJd5wEX+pciGqadUis2jMH7kO37rnM6CrZU1F4DC3mhTfWWx5epkH3WWE E3154oOzF/hDrVprAtZ4VxKKXwzJ8hc6EGWFoXcvXo4J++iSRcRzizuTXNN7h77aA0Zy 49bA== X-Gm-Message-State: AFeK/H20+8P544MGLtWqlewpWllaE/jqwxvesd0k4nWn1Iu4pWESD0MCgVyTW+IaSBif81iU X-Received: by 10.200.42.213 with SMTP id c21mr66304612qta.257.1491934165006; Tue, 11 Apr 2017 11:09:25 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH] posix: Add SIGSEGV on the trap list for globtest.sh Date: Tue, 11 Apr 2017 15:09:17 -0300 Message-Id: <1491934157-30940-1-git-send-email-adhemerval.zanella@linaro.org> 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