From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28378 invoked from network); 9 Jul 2023 00:04:33 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 9 Jul 2023 00:04:33 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id CF54B2B4E7 for ; Sat, 8 Jul 2023 20:04:30 -0400 (EDT) (envelope-from bounce.mMfe03d0d140063db1ea509f2a.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id CB34B1ECE02F; Sat, 8 Jul 2023 20:04:30 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=pbrane.org header.i=@pbrane.org header.b=Gj22buOF header.a=rsa-sha256 header.s=purelymail3 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=purelymail.com header.i=@purelymail.com header.b=JNRGjjHM header.a=rsa-sha256 header.s=purelymail3 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=pbrane.org; spf=pass smtp.mailfrom=ality@pbrane.org smtp.helo=sendmail.purelymail.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:references:mime-version :content-type:in-reply-to:list-help:list-id:list-post :list-subscribe:reply-to:subject:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1688861070; bh=R07P9bvCuSdt0duK G+ztb/rIcKwztmWiFCVGkvMLl8o=; b=YMdMPcKvBbqovlKqJT88z/4K3saepeVD jtjGm9pv48HpfuE3p3Up5ZPgCaJErefVyqlDIeDdGJOzWjbo+C7B26Ua3jn24Dmu AtAVefXv9QS4u7iYtHzYiL0guQ+NZcLRr7tHXb+0sqmEmUZmkr0KUQYTKkAcTkHe O6uTGd950co= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1688861070; b=nKCz8XBrN9rIKWk9+pkaYAFk+vjfHRQf7FRAmbUNSB79F1LfcF VjdAwBlLx6zF7wnACU6HBY2PERPZQRywT3k+QCmURivWhLKrbO9SDRGOaC0PE8FX BjpYj0HGoUfHMWKDwyrZvSV6uFTxfO/efRbaer3XCT54TMOfslJy7uusA= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=pbrane.org header.i=@pbrane.org header.b=Gj22buOF header.a=rsa-sha256 header.s=purelymail3 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=purelymail.com header.i=@purelymail.com header.b=JNRGjjHM header.a=rsa-sha256 header.s=purelymail3 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=pbrane.org; spf=pass smtp.mailfrom=ality@pbrane.org smtp.helo=sendmail.purelymail.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=pbrane.org header.i=@pbrane.org header.b=Gj22buOF header.a=rsa-sha256 header.s=purelymail3 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=purelymail.com header.i=@purelymail.com header.b=JNRGjjHM header.a=rsa-sha256 header.s=purelymail3 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=pbrane.org; iprev=pass smtp.remote-ip=34.202.193.197 (sendmail.purelymail.com); spf=pass smtp.mailfrom=ality@pbrane.org smtp.helo=sendmail.purelymail.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sendmail.purelymail.com policy.ptr=sendmail.purelymail.com; x-return-mx=pass header.domain=pbrane.org policy.is_org=yes (MX Records found: mailserver.purelymail.com); x-return-mx=pass smtp.domain=pbrane.org policy.is_org=yes (MX Records found: mailserver.purelymail.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:message-id:references:mime-version:content-type:in-reply-to :list-help:list-id:list-post:list-subscribe:reply-to:subject :content-transfer-encoding:list-unsubscribe; s=dkim-1; t= 1688861070; x=1688947470; bh=9CMeB+trFMi4/wpMLBZC24J1Gvuz0yVl0H/ 4nHKfNb4=; b=aj/EbMOTgBC7g5BHkPxDlBT6G/Lz9txVl0HMDWway6CNtTHOOii g6dpOiNSNmNzLjfTvibTH3MOv5s98uIsKuxvtxul0T/5jm8SSSGoldjuP58KL83m GqnLMzIpKRZwJtMpeIvw7noRi6rpbnWc0whsvVzmOOiY5UMJOsXO3a9w= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 0FE691ECDBF5 for <9fans@9fans.net>; Sat, 8 Jul 2023 20:04:21 -0400 (EDT) (envelope-from ality@pbrane.org) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 524FF846CB2; Sat, 8 Jul 2023 20:04:21 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1688861061; b=qxrVtxlFB3NF8gomnw9S0aZD9/N2h4LQRvjrSekd330JcI9QLE Co/TB60kr1rX8oe5YXkN3uA83EuxEiyJ/TtN3vZ0zN68jT7Ihlsi1TDcUvFR05oI QgjtSLC254vAY2Tn63bjzpxK9YA/jY2kJomn1HEMnUojE41FupQyB3H9eUKKu/A/ 8bf/eCZYUqirMkORfF/5mwjFBBzEpABJS/bLnSwD104tOwusqSyA1LeoZeShnu8N 4EGi7vj9oWuOJtl2ODtB0dPRoNHd7XiFIaQUnPfCSsaqkXLX1MAKTxN7Cf7vd+Dj qcpcrgUW3N7nhnkLt9sDJP8KSIWS2VGIDoWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=arcseal; t=1688861061; bh=tH2cQChvC6/TOcfVINChKuaD5l0oeu9jgtQkYRxjQGE=; b=t3WuMGqM1oPq yNSjCrE9fN4y39m6ufWa9dKFDHo1gEBVTcHvgPwiM0Mu/ns7Fx7jrrp6PbuEfZFF D4RrPYCrcsGQcrj0gL1T8lXJgQvZ2LqTcHeQuJPo7KAGuBWgSBHwVDspGIjaR4Cz orjm639n0HLe5Aknw8rG/NdUEHWcEt2ZhYViBmIys+QUxdM0fmxYYLq4NTejbm5J Sq11hTsnNGnIezzQzDQ5/FkMhduDv4ziphr9vlrnyuGk32m+pWLQK+92dyRIE4q1 qZxx4pzx9VEFUia9e0qtujJs5FZk0nlqZriQ+8jWHGTkBCEgFc3wT44l5CjCBNf4 TWe45YDcQg== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=pbrane.org header.i=@pbrane.org header.b=Gj22buOF header.a=rsa-sha256 header.s=purelymail3 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=purelymail.com header.i=@purelymail.com header.b=JNRGjjHM header.a=rsa-sha256 header.s=purelymail3 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=pbrane.org; iprev=pass smtp.remote-ip=34.202.193.197 (sendmail.purelymail.com); spf=pass smtp.mailfrom=ality@pbrane.org smtp.helo=sendmail.purelymail.com; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sendmail.purelymail.com policy.ptr=sendmail.purelymail.com; x-return-mx=pass header.domain=pbrane.org policy.is_org=yes (MX Records found: mailserver.purelymail.com); x-return-mx=pass smtp.domain=pbrane.org policy.is_org=yes (MX Records found: mailserver.purelymail.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedviedrvdeggdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukf hfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhhthhhonhihucforghrthhinhcu oegrlhhithihsehpsghrrghnvgdrohhrgheqnecuggftrfgrthhtvghrnhepkefhvdfhud ffvdevjeehgeevgedugffhgfdvkeektedtffduudevjeetfefhhefgnecukfhppeefgedr vddtvddrudelfedrudeljeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepih hnvghtpeefgedrvddtvddrudelfedrudeljedphhgvlhhopehsvghnughmrghilhdrphhu rhgvlhihmhgrihhlrdgtohhmpdhmrghilhhfrhhomhepoegrlhhithihsehpsghrrghnvg drohhrgheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (pbrane.org: Sender is authorized to use 'ality@pbrane.org' in 'mfrom' identity (mechanism 'include:_spf.purelymail.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="ality@pbrane.org"; helo=sendmail.purelymail.com; client-ip=34.202.193.197 Received: from sendmail.purelymail.com (sendmail.purelymail.com [34.202.193.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sat, 8 Jul 2023 20:04:20 -0400 (EDT) (envelope-from ality@pbrane.org) Feedback-ID: 10987:2443:null:purelymail X-Pm-Original-To: 9fans@9fans.net Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -817079316 for <9fans@9fans.net> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 09 Jul 2023 00:04:06 +0000 (UTC) Date: Sat, 8 Jul 2023 17:03:59 -0700 From: Anthony Martin To: 9fans <9fans@9fans.net> Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline In-Reply-To: Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 2a0efaf0-1dec-11ee-9af3-e31235a3c405 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UMzM5MjAwMWEwMmVlN2VjOC1NZmUwM2QwZDE0MDA2M2RiMWVhNTA5?= =?UTF-8?B?ZjJhPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] Re: Pipes staying after sending note Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mfe03d0d140063db1ea509f2a:1:go_H2NaXBq3RVbmK08mb13rWVCJaM39JgpDOho2FwJ0 Philip Silva via 9fans <9fans@9fans.net> once said: > if ((cpid =3D fork()) !=3D 0) { > close(infd[1]); > close(outfd[1]); > > n =3D write(infd[0], "test", 4); > printf("check process: wrote %d bytes\n", n); > > sendnote(cpid); > // close(infd[0]); // <--- uncomment to make write fail > // close(outfd[0]); > > n =3D write(infd[0], "test2", 5); > printf("write: wrote %d bytes\n", n); > > n =3D read(outfd[0], outbuf, 20); > printf("outbuf=3D%s (n=3D%d)\n", outbuf, n); > wait(); > return 0; Why aren't you waiting for the process to die after sending it the note? It must be running to see that is has a note pending. At the time of your second write, the scheduler may not have selected the child process to run. The sequence could look like: child: read from empty pipe, go to sleep parent: write to pipe parent: write kill to /proc/$cpid/note parent: write to pipe child: wakeup, see note, die Cheers, Anthony ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T3392001a02ee7ec8-Mfe03d= 0d140063db1ea509f2a Delivery options: https://9fans.topicbox.com/groups/9fans/subscription