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 6932 invoked from network); 18 Jun 2022 08:37:28 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 18 Jun 2022 08:37:28 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 2CE50199EC for ; Sat, 18 Jun 2022 04:37:23 -0400 (EDT) (envelope-from bounce.mM62a1f2e8578fcd812c35b4b5.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 34D3928F5F2A; Sat, 18 Jun 2022 04:37:23 -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=1655541443; bh=mAnk1rzMxE/b36o/ 9tb9f4RwGjKhWcwqbI2ea3js3FY=; b=pX8poLAQx3bi0xyWbHmr2+cHsMlB7fEo CgIIIK/9P06LAaz31CKx/uwcwb3mjNTlE4jvpRbfNnFYf3GileLss0HAMlh9vUsZ gexuynI/GrVMRmpjoXpa7PXfjTQ1yyhxtK3GTS2u54gXxFZbpWizqlXFl0TPJ9+e W8+nFc7wgvs= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1655541443; b=VBXGpqxLTjLTebLOkrwt8d19N2/PsYtjaIXw1rGAZQsBJw+F+O Q9UmqnRdONUQLltE9DS86J40o6/3kvPkiA+oAwieuv36IOR1XLs4F5GVXKcFbVvP PZ6y67MNncLI2/NY92+9V9qnXJH1KYCySGr/i24rKN+LAl6cY2zmYYTYk= 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-mx0.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=1655541443; x=1655627843; bh=IsZlgA5FIensiHuUDUTDzx4/a8OlBlsd 7DjWUIDsvgk=; b=CPmeP/rnb8ZYYREDq5vsF80yP1XtgIOqrFJ8rbNAfaOOOEfX FFMyKB2iZrd3sjnD+S5IkNUtfuAjAHPTr7rp1edYeatP1PVb1ny9FqXcwDDJ8lPa 64WH60/PXq24j4tgFoGUbhu8T/E8wNxOjbUxLyMCWQOdMajt5gkFw0MvUnw= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id B18E428F5B08 for <9fans@9fans.net>; Sat, 18 Jun 2022 04:37:12 -0400 (EDT) (envelope-from adr@SDF.ORG) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id CDC6BA91D21; Sat, 18 Jun 2022 04:37:12 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1655541432; b=jL04Eq1ZLqVIaZulnZDOfTJuZbvp/+5BNI28bc5NXOrM/c7LR6 FXbxbp9he6fnsZWUvA2QrRIboDDqdyEq5QIya6ZtYZglfY2Xogok5MVq+rR0Pg4F yPWijqyCvduWtV3kyuNbxb/BfDjXI3S/7VREof98tNGLMJGJf4pg83VF1Xl4ZELo 8+pCtmcM8IfPZnJm94itNWtIh4yr1SK74jy+pz9ZMF4zrgOM4UvZFxriWTxI8bDP YqYavWJNeZrrm/r8q4W6LtgnvM6v3TQrxEVQOJhDPKE3zLv7nFDqvXKk4s5f/T+x rQL+NZyZg1kdjKUcbU6Ro0hKGwMqUn08rlzw== 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=1655541432; bh=n/dyXZ7WvXRPnpToL0XFPOtzfCEAYzGrHAHTYs8rjuY=; b=oVCUNSm2oo6J X8TfpOKATFvrhMkctiP7uRGTBkUHGHhIRGzO2qpXEmkrD0l4bulsF+3MgT5NLfKQ 4JCSdlO7Q8sLD7wVFsqtsgG1LOG3etJrUvF2+A0FK5PxD6P6r6d27/AGIMgRuFp6 bezdyVOo8oOAq0CZC3BB4OQYl9rIxsnDr/lHt2n3/dqmK2ab0VQxrrBE8uhdS6SE fG6O4DYaGWYrIHHPgl9UaELhAhBSlrQL9MTTkkX5/9Xyj0/6LxYeDzrmLQ0VcbRl wRjpilzZw/c4P+AQrmAqwkQKblqkftdHyw5cyUIF04tZbMY3JEn9gd5Dy2ohgYQa 3WRvGyCwMQ== ARC-Authentication-Results: i=1; tb-mx0.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: gggruggvucftvghtrhhoucdtuddrgedvfedruddvjedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuf gjkfhfgggtsehttdertddttddvnecuhfhrohhmpegrughruceorggurhesufffhfdrqfft ifeqnecuggftrfgrthhtvghrnhepkeehtdevffehvefhtdeghfehgfevleevudejteejtd ehuddvfedvkeegtdffhfffnecukfhppedvtdehrdduieeirdelgedrvdegpddvtdehrddu ieeirdelgedrudeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvth epvddthedrudeiiedrleegrddvgedphhgvlhhopehmgidrshgufhdrohhrghdpmhgrihhl fhhrohhmpeeorggurhesufffhfdrqfftifeq 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-mx0.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-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Sat, 18 Jun 2022 04:37:09 -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 25I8b8uA026091 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Sat, 18 Jun 2022 08:37:08 GMT Received: from localhost (adr@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 25I8b8kS012432 for <9fans@9fans.net>; Sat, 18 Jun 2022 08:37:08 GMT Date: Sat, 18 Jun 2022 08:37:08 +0000 (UTC) From: adr To: 9fans <9fans@9fans.net> Subject: Re: [9fans] syscall silently kill processes In-Reply-To: Message-ID: <64a85bad-7ab-fb6-6517-acfafa819bc@SDF.ORG> References: <79286caa2ca77ea9b9a1cd64918bdc5f28c8f180.camel@gmail.com> <9e922645a598c69ba14b74e18e8669cc068e9717.camel@gmail.com> <0e5677e6-684d-ff37-c6cd-430d18536070@posixcafe.org> <3889a52-3fe4-c28-1c3b-a73412a489@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: dc0ec70c-eee1-11ec-9198-b2db4690b1bc Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmE2ODIzMDQ4YWQ5MGEyMS1NNjJhMWYyZTg1NzhmY2Q4MTJjMzVi?= =?UTF-8?B?NGI1Pg==?= 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:M62a1f2e8578fcd812c35b4b5:1:wPjBMzo0nY6MJS-8Tnf_XGk7GAdb9Pnt3sTI5SSu89A On Sat, 18 Jun 2022, andrey100100100@gmail.com wrote: > --------------------------------------------- > > cpu% 6.out | grep end | wc -l > 33 > > > Problem in unregistered handlers. But unregistered handlers shouldn't be a problem. The process is been killed when alarm sends the note. That's why the code worked removing the read statement, the alarm is set off and the note is not sent before the process ends. I just don't see why the process is been killed. The documentation describes another behaivor. To me it smells like bug barbecue (corrupted onnote?). Maybe I got something wrong, bear with me. >> Note that you could register the handler in threadmain and avoid >> completely this issue, but as I said before, something seems wrong >> to me here. > > I'm don't understand how handler in threadmain would solve the problem. > I need in 'alarm' on per process basis. You need alarm() in every process, but you don't need to register the same handler 80 times! adr. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfa6823048ad90a21-M62a1f= 2e8578fcd812c35b4b5 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription