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 Netto X-Patchwork-Id: 97275 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp78329qgf; Tue, 11 Apr 2017 11:09:40 -0700 (PDT) X-Received: by 10.84.224.136 with SMTP id s8mr21417144plj.93.1491934180431; Tue, 11 Apr 2017 11:09:40 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id z95si6913254plh.321.2017.04.11.11.09.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Apr 2017 11:09:40 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-78577-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-78577-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-78577-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=YESXjd1v2PrW8xMCWQR1/vaXGm59R1j2MD1N5D2DGm1+XrcAXNoXs groxJmH8YgoSY79Zb7pAholX0Ca6SOKQgPOsaIygoE+430xeha3nXOJQf52nMvka WEiUcyLGrXQjRYYNR3eudhp2ZBvGj/F2mqpwUseIDhiVOQYO0aioGk= 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=d7UsvQczMnZTmW/1yfDMd7LRVS3x 4+9s/HVHECJy7QJsAfW0rZLdhnvE0jQAnzA6+koG/4rbaqxbE+1B4VKmSpmEtPxz wE52y63J3oSev3VKrqTnNn3DyktvJWbYsfxNTRzPJpBv63aAimzMxTBSCrrOoKXt w0g1bjzSAC5QcUU= 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(-) -- 2.7.4 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