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 27692 invoked from network); 21 Jun 2022 07:22:51 -0000 Received: from tb-ob21.topicbox.com (173.228.157.67) by inbox.vuxu.org with ESMTPUTF8; 21 Jun 2022 07:22:51 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob21.topicbox.com (Postfix) with ESMTP id 00DC037DB7 for ; Tue, 21 Jun 2022 03:22:49 -0400 (EDT) (envelope-from bounce.mMc9df1d1014565db0ee016754.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id A4EA12953C2F; Tue, 21 Jun 2022 03:22:48 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; 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:subject:in-reply-to:message-id :references:mime-version:content-type:list-help:list-id :list-post:list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1655796168; bh=KyktX9EqGNb9SE4I tqr2gsbJkyFFxSWKNqracIrMlGM=; b=oVnJriX14Kiv24QHxD5jdZcm27VFjKo6 FoTELCYVTrhbKp3oScnH02S01nZMM9LzkAegylkxEU4YzS+astde20uBIdrJJkLb 7Rawb8TX6/vgcHhAakFH8xzlmEBJ49fhaI9D4l1XBSdo9t1OuwHwlx4Y1LpG95uq lTUCBra8u3Q= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1655796168; b=BerFKZUrQ0E5XD6RMpTrlCKz3dKS+kpAPRF4At20CLND38h3zu KorvlHG+0Vaoq7q5ijwaB9kgyjS0wi1zGL/y5I20pxYjVeaIXJ1bQeVYkUKi6d3k QfyuyQJo6oGKEXfY0CcVQ8ECLokt9fAHB+Pp+v0ArDY1/CmB17suJFxBA= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; 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=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); 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:subject:in-reply-to:message-id:references:mime-version :content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1655796168; x=1655882568; bh=KyktX9EqGNb9SE4Itqr2gsbJkyFFxSWK NqracIrMlGM=; b=dP/+GyNb+QZeP/faeQZQ4CxcLLz0u5cUCQ6BmrJXcvNDFTBL RDDm2+ajvZ6+v0kmu/5/aSiKWvlr4Xb0cw79DiaNPuNK3ad1XfcDnQP07j/soVik IoD9704lrp/PYmKg3u0U1ikSFGYZYHq4XdhFznSCaweVZ408qIqkGI/sf/c= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 5740815913F0 for <9fans@9fans.net>; Tue, 21 Jun 2022 03:22:37 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 5EA9DAF2C93; Tue, 21 Jun 2022 03:22:37 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1655796157; b=Z7vOS1f4qzPy7PiOA/EqciH7djGQybTmy79YVN6KPYMrEtR4q3 kk6qJJdTqejvZ3Jz/M9am8EoNgX+fTnqjAX+jvwKqiaMMxCNQWa7P2an2NXuuNWB DhSbDfvrV2X/dY+wPY5m9qROE4lffEel/oMJpnVaNykMxtM8PfFdMZQIfFvn2Su8 bkXRgotePuuRLRRnZEfwm5wp9nsYCFWK4L5L+vD0PBQ1BIIVnF8st2o8MLNv+6Aa YX/Hdl9NVh8p+WZSR4H7q1kaaPiFj+MHrVnYmIc/p+hUN3EBACwWcJlR5Ai9KIX9 4BS0vUj5Rr4nlq6Sva11n1XzQpG/6JjIfV+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type; s=arcseal; t=1655796157; bh=tKfCfn+Vc2hBf4vujfNhHKvWqd9r0SePrL2FiVpJFgY=; b=NmVEr6ed8c8I nBTD0OhfG8XnlMejFrJIkEte6KIiiCi8xasgpITgazM4aWhJcyAcCTWM9jSCH8zR JSSRjPhAhoUr8HJZE5xtMP6t3zOWP/0IMPsGK9Xa6yoOlC9Qva3mtqB5//1ygY9I vCfHv1g/VdniBOWSmSfMfEc7KaIbsUDm5H6VJGYALMT9J57itgnyj729qmIrHZ/Z Kk1CMCS1xMd7STDIKca9XxOMFXXcxqAYLn02YWIIh8+D+rIODaSyljdPcHNNpZA5 gFGr9QjfoFP3W7wH3WJvOu/MXsbUq65aF+ctwoFuOejeW+MDApMohYsEi0Vk33dH KT0GLSYQ/w== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=none,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=adr@SDF.ORG smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); 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: gggruggvucftvghtrhhoucdtuddrgedvfedrudefvddgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvf fujgfkfhggtgesthdtredttddtvdenucfhrhhomheprggurhcuoegrughrsefufffhrdfq tffiqeenucggtffrrghtthgvrhhnpeekffdtjeefteduiedvjeehtdekvdffheduueeiud eiiefhgfefffdvieelvdejueenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhp pedvtdehrdduieeirdelgedrvdegpddvtdehrdduieeirdelgedrudeinecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddthedrudeiiedrleegrddvgedp hhgvlhhopehmgidrshgufhdrohhrghdpmhgrihhlfhhrohhmpeeorggurhesufffhfdrqf ftifeq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sdf.org: 205.166.94.24 is authorized to use 'adr@SDF.ORG' in 'mfrom' identity (mechanism 'ip4:205.166.94.0/24' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="adr@SDF.ORG"; helo=mx.sdf.org; client-ip=205.166.94.24 Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (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>; Tue, 21 Jun 2022 03:22:36 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from sdf.org (IDENT:adr@sdf.org [205.166.94.16]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 25L7MYP9026786 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Tue, 21 Jun 2022 07:22:35 GMT Received: from localhost (adr@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 25L7MYic003712 for <9fans@9fans.net>; Tue, 21 Jun 2022 07:22:34 GMT Date: Tue, 21 Jun 2022 07:22:34 +0000 (UTC) From: adr To: 9fans <9fans@9fans.net> Subject: Re: [9fans] syscall silently kill processes In-Reply-To: Message-ID: <881d3db5-69ec-26ab-ee97-82b01b83491b@SDF.ORG> References: <2b857fe-c6df-a6b8-40ec-566c85b7377d@SDF.ORG> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: efe25c78-f132-11ec-acb5-fad6ebc362d7 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmE2ODIzMDQ4YWQ5MGEyMS1NYzlkZjFkMTAxNDU2NWRiMGVlMDE2?= =?UTF-8?B?NzU0Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mc9df1d1014565db0ee016754:1:N9ZBPP59z3pFoKDaDfzWrVkB-BZmJDQvz2SN7v6YMFM On Mon, 20 Jun 2022, Skip Tavakkolian wrote: > It's cleaner to use channels with separate io and timer threads that > do their syscalls via ioproc; this one doesn't require any changes to lib= thread: > > https://gist.github.com/9nut/aaa9b9b6a22d69996b75ccdc6e615c61 Nice example, but I strongly recomend changing libthread or removing notes support. Right now: If a process try to remove a handler which has been register for another process before, it will remove the handler for that process instead of its own. When a process exits its handlers are not cleared, so if the process doesn't call threadnotify to clean its handlers, this space is wasted for the rest of the program. Also it makes sense to clean them all at exit instead of doing it explicity for each handler. threadnotify will insert duplicated handlers, wasting the limited space in onnote[], onnotepid[]. Note that those duplicated handlers will be completly ignored, they will just occupy space. If you are using notes and all your processes are going to share the same array of handlers, doesn't make sense to be able to register handlers which could be used by all of them? Another discussion is if the notes mechanism really fits in libthread, as I said, maybe is better to remove notes support completly and force the programmer to exploit the api. Yours is a good example. Regards, adr. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfa6823048ad90a21-Mc9df1= d1014565db0ee016754 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription