From patchwork Mon Oct 14 20:56:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 176336 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp5011295ill; Mon, 14 Oct 2019 13:57:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6WfbM728U+AVU9kPPmxY+r149/bV56gAGcV4QQIJUrWK5boLS7qXxC83sKspmYctZ4Eox X-Received: by 2002:a17:906:85c5:: with SMTP id i5mr30349050ejy.222.1571086637303; Mon, 14 Oct 2019 13:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571086637; cv=none; d=google.com; s=arc-20160816; b=TcXFGfB0KYl0fvpo+s+nCK0R1i5zxIp86tlVEs+JYKkY6EkczkmTx7B7jA5D2KotwC LPOWnDAWIphMNhibSrJrfGipv6W2T2hJwupT8UxBPYXuwvZm3id1uImTpr7M7ebSSxUg UGOOSMU/VzdrKv+eMN0q32jJOozii0Kj5FkharexHQ61f+jLbbBgtwdCEr39rPB8SBOM PZEAv7VSqa7eAzXP8opcj74+ZNS0KMMR0t04t4FtJ6lWg6C1QACBZq/1s87RKUyVp/pm OTp1BOjtjlsJWmwdi0IXCYrVXqHQWAsUQivuh8TUsdkPZwowVCiD1wK86XsXSG3pRWF9 MHqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature; bh=Ax/Zw6d3MiKurhrCmPvgYNHm4ADZWu4IQtvNVALAnh8=; b=F3wM6mocNv2kX5/AGwuQbeVPCxjgLMRjn7OB6EaPLeiUw/eBlRKlBHlOkvg63GC2cx StTN5u65xth81oeibSfuEAlUtc9EGwpLpkOyIWVzgIBUTaZPXJ/kVdcabMZnNgywaoHu c2ojtYd8Fhf+jZ+lBdnB173n8dqUmKHXkuyJEIdyB9lMGHOhgKPKW6OCvayTLJuPvtoE Kt5srsPrdvkPIVQ9ovMo7FHpysGbgIisqLgdTarmXTJbjCCz7Wo6QLTHlhEeFOkmubp8 d/CEa1g2zt51nCLmPtidlxq8q323Bqzu5DwNqT7j2iwNnBV//sEwfg1GzIgJg2UUMMeR Dipw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=H32HZ9A6; dkim=pass header.i=@linaro.org header.s=google header.b=rLLDYw64; spf=pass (google.com: domain of libc-alpha-return-105927-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-105927-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id gg10si11490553ejb.206.2019.10.14.13.57.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Oct 2019 13:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-105927-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 header.s=default header.b=H32HZ9A6; dkim=pass header.i=@linaro.org header.s=google header.b=rLLDYw64; spf=pass (google.com: domain of libc-alpha-return-105927-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-105927-patch=linaro.org@sourceware.org"; dmarc=pass (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:in-reply-to :references; q=dns; s=default; b=t8kJuwhKf0vMWmAnvYLqDfsG+juzE7V uPqvRENI5FEvSiw1MrW3qYAAWGv5AI51bRjJ3tVGYkSclL75Zu4j1m7XrSPzZ3Qv kFq/2yMlg7Utd0SvN7AXEA46hiYKdizPJNohPMTJQrMECU4qIEOR856XoS3K52HA GFa4sR+QjJ+o= 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:in-reply-to :references; s=default; bh=55gl1ec8/uQBuk6zcFuFjPodAyc=; b=H32HZ 9A6AevAdEHuspoaQS1qhdd/iD15f3mdeU9n5YJhK1t8YVxLyGX6HkPXkQyaQczmi J8754x2JTG1YQWpiyPUKKfvcpLbhxXwUkSohYOsurN47MSKNx9Ns13BJjZf3kP+1 I/KOlT1JvNHNROe0zSv14JLioaEI0BGYRJ4RCU= Received: (qmail 112321 invoked by alias); 14 Oct 2019 20:57:06 -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 111992 invoked by uid 89); 14 Oct 2019 20:57:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=puts X-HELO: mail-qk1-f194.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=Ax/Zw6d3MiKurhrCmPvgYNHm4ADZWu4IQtvNVALAnh8=; b=rLLDYw64uakaSRt4TTNzlhuAj0sg+MLos1tuNTidx1LGoKAH0UpHNLkpRN2R+NJEIF hT9AsSqlgtnBtBiCDV/wWsO60mg3oxKIUX47u5xwFXzkhvimzJsWuAnv/SadZ291iXe2 5ldcjlVHonTRTzVLuAMQUXlDd3i7lNpYq6HYaYSvfjwqtcrR6lkY2llUev9/Wyd8fQaN esWqGBLaTL8RathR4pSTObThk5+KDQZdoS7zfXsrZDINxIqp5/7mCJ1wybCg0gmvyFLU NfMynrcsWYz0Kmf+D/W+QDvx9hFfyxTpJeQ50kx/Ui/d3sbQIyGwsEZJ9z1Xgi7+3NHD cZ1w== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v3 01/21] nptl: Handle EPIPE on tst-cancel2 Date: Mon, 14 Oct 2019 17:56:36 -0300 Message-Id: <20191014205656.29834-2-adhemerval.zanella@linaro.org> In-Reply-To: <20191014205656.29834-1-adhemerval.zanella@linaro.org> References: <20191014205656.29834-1-adhemerval.zanella@linaro.org> The SIGPIPE can be catched before SIGCANCEL, which makes write fail and the thread return an non expected result. Checked on x86_64-linux-gnu and powerpc64le-linux-gnu. --- nptl/tst-cancel2.c | 3 --- 1 file changed, 3 deletions(-) -- 2.17.1 diff --git a/nptl/tst-cancel2.c b/nptl/tst-cancel2.c index b22bd496a7..2df2c00578 100644 --- a/nptl/tst-cancel2.c +++ b/nptl/tst-cancel2.c @@ -73,9 +73,6 @@ do_test (void) return 1; } - /* This will cause the write in the child to return. */ - close (fd[0]); - if (pthread_join (th, &r) != 0) { puts ("join failed");