Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15974

Re: Procsub.tests on OSes using named pipes

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From "CHIGOT, CLEMENT" <clement.chigot@atos.net>
Newsgroups gnu.bash.bug
Subject Re: Procsub.tests on OSes using named pipes
Date Thu, 27 Feb 2020 07:55:26 +0000
Lines 25
Approved bug-bash@gnu.org
Message-ID <mailman.1631.1582790142.2412.bug-bash@gnu.org> (permalink)
References <DB7PR02MB4075AEFED9BEDC6FDC0C2D2EEA1A0@DB7PR02MB4075.eurprd02.prod.outlook.com> <c981c061-010a-d8f4-e9dd-d403a10c5bdd@case.edu> <DB7PR02MB4075BA041EDA6A45E9D85386EA130@DB7PR02MB4075.eurprd02.prod.outlook.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1582790142 8037 209.51.188.17 (27 Feb 2020 07:55:42 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Chet Ramey <chet.ramey@case.edu>
To "bug-bash@gnu.org" <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=atos.net; i=@atos.net; q=dns/txt; s=mail; t=1582790134; x=1614326134; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=pT95LJ7TmyWobsy0ovT/iVFsOO9Tbxy7GD7XJDPPMns=; b=maoSAcCxf7z+hHl/z9OsGBmk3qWy7SC6lM52sPMq6jwf++q2FLufKNxI Q0AXKkOwPrB/v1fjdA+35T03dbzyEVDQdt4g3y/qWRJvGwthP9+bV23P8 oRr8DjxuXBUnLL/yLSt6FN4saLSHk3QBvLmGOE78rl0eecf4JTbVtdfVm g=;
IronPort-SDR cJ2/MGyVPDwMXdVbx0ztc69XrM4Wpcbt02GGBXYm2Q0znGkaYcJ0UwYqx9znxA/pND+gid+o3D DO3s+jwf2/ePuYoS8VBWBmC0JZchjr23fbMVi/LDCuv3LRRT3GiF5gFEuaYkpFmjJwO23LpxTL BhxD23WW/Lb5cU3gYViPxGJP/ByASXI36jmJQPaVjltdVANRSdPfjM4zBnjsmIeVznJsvNVZQY jy9YF4p+fBfyPKEuceVGlOmAGqvVJRxuVUKIyJBTvTZuIyCN8PIvE5FH9jKbwab0aGSx4DL0TV tWFcJExBfmrrGPM0FXunILqk
X-IronPort-AV E=Sophos;i="5.70,491,1574118000"; d="scan'208";a="37173557"
X-MGA-submission MDECY/plQoW4dbe5YtalvNu70FPXXRRPAKAWHSnxbYPWUs4DV5nddN61Y08IoN+tBUALXLMsmjJY/81rKNaUcQKiPvY6NAxrOXANFppiQoMGzv1D50ZTfpukalHVjoUqFaphsn68JFHYCSTOpj4ujSdM
ARC-Seal i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KVfLQMgYmtDrDfWHGF+GsOtnMpDlbnlmxgfDtvKHq0mQbLrJBmGYJkhIurcLhzWm7hyue5INInv9K4rDpRfAX5tY1xXXz5L1J2rSaZUAL23RYiXy3yeIdhIJctCXp5vaklxKKBJUOxWrQMmTgq1tPrPthigvG1s0VaKxTor8f94KSFtVrWJX/5guwWjAobP+IP3PoxVvui4NWZx7F/odsSyoIo/zhHLFYhVdaeHr5AUehxV+XBD0S2KtRytK8bOHzjldTzQmnyBE8HLHyf41zZoeGwOTOlQrXtgFG66DXJ8RpqQMhbBgijMpHGhY4u0YeC7bFJSNKMbF1t1JIGA2uw==
ARC-Message-Signature i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pT95LJ7TmyWobsy0ovT/iVFsOO9Tbxy7GD7XJDPPMns=; b=Jn5pt7NHCpUQqSt9rJmzGldW6Lbzk5Zb1p2aphEoBeodmYDjixrTOtkOdcjnbyL1SxlujYSMj0OcxjzAj6TEjsKPBeHsV12puRlT1CcZTPH5Xvd1nvmdMRhZpw2kZz8hymSbpIKV/PwRxbOsMgnwZPpC1Y1emQ/NVZ+af4Za4tpElwgTsk4e98hmYNvCkr19NCgLkgPcKvFSZCzNjqPOg+6SlkqxcOXxtzKy6fjOe4AZlk72gkPErpGb9y6sgjq7FeypDSMipiLIoABzCvrfVM+a/MvWwYkvagIMtpbFYkUakRS7yM/YCl+cKmwdT9lPtLpVsTK0Ucyc+Ijb+4UgHw==
ARC-Authentication-Results i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=atos.net; dmarc=pass action=none header.from=atos.net; dkim=pass header.d=atos.net; arc=none
Thread-Topic Procsub.tests on OSes using named pipes
Thread-Index AQHV4lMjRZ+lXL7UvEW8UUbE72cdUKgaugJugAH3RoCAB28UwA==
In-Reply-To <c981c061-010a-d8f4-e9dd-d403a10c5bdd@case.edu>
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
msip_labels MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_Enabled=True; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_SiteId=33440fc6-b7c7-412c-bb73-0e70b0198d5a; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_SetDate=2020-02-27T07:55:50.106Z; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_Name=Atos For Internal Use - All Employees; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_ContentBits=0; MSIP_Label_e463cba9-5f6c-478d-9329-7b2295e4e8ed_Method=Standard;
authentication-results spf=none (sender IP is ) smtp.mailfrom=clement.chigot@atos.net;
x-originating-ip [193.56.241.24]
x-ms-publictraffictype Email
x-ms-office365-filtering-correlation-id e7bbaa39-c6bb-491c-c162-08d7bb5a6823
x-ms-traffictypediagnostic DB7PR02MB3721:
x-microsoft-antispam-prvs <DB7PR02MB372171383974A29E143F8F86EAEB0@DB7PR02MB3721.eurprd02.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers OLM:9508;
x-forefront-prvs 03264AEA72
x-forefront-antispam-report SFV:NSPM; SFS:(10019020)(4636009)(39860400002)(396003)(376002)(366004)(346002)(136003)(189003)(199004)(7696005)(186003)(66574012)(86362001)(71200400001)(6916009)(4326008)(2906002)(5660300002)(52536014)(8676002)(81166006)(81156014)(9686003)(26005)(55016002)(76116006)(66476007)(66556008)(64756008)(66446008)(478600001)(6506007)(4744005)(33656002)(316002)(8936002)(66946007); DIR:OUT; SFP:1102; SCL:1; SRVR:DB7PR02MB3721; H:DB7PR02MB4075.eurprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf None (protection.outlook.com: atos.net does not designate permitted sender hosts)
x-ms-exchange-senderadcheck 1
x-microsoft-antispam BCL:0;
x-microsoft-antispam-message-info 75sxMWNRKKJwe/43kQ4xfintrP9JHhHtKNXcVw2Izh3Dz6fnVZ0WBwmbMYhvW6MGa/Ez7Mhms8WPOyPTygGjF4mEK8PUsNvSZ8wIBXlNP1OqNcWWW1aOvZxbS498pTt4vyKzTB6GYDO+AIFJVI+6KAAek8Z7Ytj0qOIq8j3lEDMCLBweNfy/5c58wsh5R85nvSuVlaHRsSBL6OVvxJIYBw4/810P0I+T5P+eTmS0BA3o76FZ6zLNaLkMbCtD0cHjG+L1kN0LyciVy30TYRxOQiXKBAtv8DfTVs562kYnfzqWdyDM7W6TInQCT9eI73wgPAK3k5EI7+10EJZkMqREUdrRWgkrPVALmtVOHa4VLGELOXzOIw0JvazPSQcFH/l7v1oiBPYPojUTIZkHXMqBlirhjcGGSWDpTWdu6skRlbIXOjlEIzTxYpn537a0wq14
x-ms-exchange-antispam-messagedata cJ/CI/O6WaR9Z/q8SJoX+Ca1SxPznZkm7Q3gY7poFbAL7PotYwxn5JrKI9GCWXbL7IuplOa44IpYEOUx0piv1RyWHlV2GJh8hJVtMEa2S4dB8JKy4oY8XMheWrsqQrOf8M+D3TtriXcfDXtXY17JxA==
x-ms-exchange-transport-forked True
X-MS-Exchange-CrossTenant-Network-Message-Id e7bbaa39-c6bb-491c-c162-08d7bb5a6823
X-MS-Exchange-CrossTenant-originalarrivaltime 27 Feb 2020 07:55:26.3179 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader Hosted
X-MS-Exchange-CrossTenant-id 33440fc6-b7c7-412c-bb73-0e70b0198d5a
X-MS-Exchange-CrossTenant-mailboxtype HOSTED
X-MS-Exchange-CrossTenant-userprincipalname QI9Kq6zWcusMip86VqSXAxbly08e0Ff2XUaC3Qb8NCPy0uUXPGNIEQMAkDCRUwFm0ab15fKLwJ73Ged0cx0jYA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped DB7PR02MB3721
X-OriginatorOrg atos.net
X-detected-operating-system by eggs.gnu.org: FreeBSD 9.x [fuzzy]
X-Received-From 193.56.114.177
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <DB7PR02MB4075BA041EDA6A45E9D85386EA130@DB7PR02MB4075.eurprd02.prod.outlook.com>
X-Mailman-Original-References <DB7PR02MB4075AEFED9BEDC6FDC0C2D2EEA1A0@DB7PR02MB4075.eurprd02.prod.outlook.com> <DB7PR02MB40752C791155F28BD5ACB44DEA150@DB7PR02MB4075.eurprd02.prod.outlook.com>, <c981c061-010a-d8f4-e9dd-d403a10c5bdd@case.edu>
Xref csiph.com gnu.bash.bug:15974

Show key headers only | View raw


Hi all, 

I might have found a way to avoid unkilled subprocesses when they are stuck in the open syscall. 
When the parent shell is killed, we can force it to open and close all the named pipes that it still have. 
It might be a bit harsh, but at least there is no unkilled processes anymore. 

It might also fix your case, Chet. Though I haven't checked. 
> There's a case very similar to that in the test suite, which is supposed to
> test a degenerate case (programmer error). What should the shell do if a
> script creates a FIFO and doesn't do anything with it? Bash tries to detect
> these sort of stray FIFOs and remove them.

I'm currently checking if it's working correctly on daily uses. And if yes, I'll submit the patch to see if it can be merged as is. 

Sincerely,
Clément 

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Procsub.tests on OSes using named pipes "CHIGOT, CLEMENT" <clement.chigot@atos.net> - 2020-02-27 07:55 +0000

csiph-web