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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3506 invoked from network); 18 Jun 2022 16:58:05 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 18 Jun 2022 16:58:05 -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 3BBAE1C3A5 for ; Sat, 18 Jun 2022 12:58:03 -0400 (EDT) (envelope-from bounce.mMc5582399d6c559ec53eddd59.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 3AC0928FD9DC; Sat, 18 Jun 2022 12:58:03 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Xo6S3F0t header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lj1-f178.google.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=message-id:subject:from:to:date:in-reply-to :references:content-type:content-transfer-encoding:mime-version :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1655571483; bh=IkdhlI/eZqnPzhns 31CjsoBx48rPmc3zzY92B8uDPOs=; b=sM08NxcqOjXP0xOpedS8MddJdKCOsBDc JJVqNZ447IGl01bDjr4HhJQnrFXrvJ79sBZxNxKI3OesGMqHNmT5I/J2EXkfYCXM 3iiPGLy+/XDTWc344xlxE7vHi8s1+MVJOmW+kOL5ELrHNGbwJtSqjQHTCSyDggPe lI3B9oec76k= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1655571483; b=uFNjjCT44ihCUpsYV+SHcG4seIURlk4Z/j/L47lphXwjqGjHxf a8J3ZREV8QRsLupbL6vJ3leX720ECbfAT47OQgy0B1m1OAWyVV+pqzT3Ee+HcUnq 47ykKCwdCD6C9A+0Ui7RrKgHq4wvg4+XG070wbPN6DXX9uv3yNXfGSKs0= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Xo6S3F0t header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lj1-f178.google.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-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Xo6S3F0t header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.178 (mail-lj1-f178.google.com); spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lj1-f178.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=4oETB9yX; x-me-sender=none; x-ptr=pass smtp.helo=mail-lj1-f178.google.com policy.ptr=mail-lj1-f178.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.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=message-id :subject:from:to:date:in-reply-to:references:content-type :content-transfer-encoding:mime-version:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1655571483; x=1655657883; bh=IkdhlI/eZqnPzhns31CjsoBx48rPmc3z zY92B8uDPOs=; b=YmOpKsrRgYRk/TSnBtUrmXYpr70d/BXRz/NdK/SdTZKADYzu 9pNSmMHzccGItzAgNScnALDI0/lMXXJZJKjlNJwfTRN8yYEVElYcyf0rqOGNOPjd J4bWrm8X8p9xSuTbc0qvdg7o497Umee5nNs6UeBKIIXq2iHGU387uOYulnY= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id A16DE28FD5BB for <9fans@9fans.net>; Sat, 18 Jun 2022 12:57:48 -0400 (EDT) (envelope-from andrey100100100@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 0C94A95BD7E; Sat, 18 Jun 2022 12:57:48 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1655571468; b=DkGPwefwW49a6mFx7AkFTBflcSFDPIHKTD3P2IuiAsWGLBTVLs 3Bdtp0gNc839EK466tehWajP0Rf+GpxGjZw8tLpueStYP4kFuACusGuZ2dSYybUK tX1xJDHHmeVip8pbdpiWh4ajNx50Jv0IkkkFTNo44+8hL2ZKLjXKkrDdjwV0SLGQ Yk5ed9ycPwc6cT/Hzyev3DwAR/79IgalP2fKiIquJe07ZR6yFtfw2+yRowNQTxku JrMeF2wgJwbHkW0gL1rk8azpzco99YOfkZgasSX/A+U3OrU6wjyLujFaKmbvsvSY Fdw+DhUzu+tFJjZsREpojzepETc+knE8MJqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:subject:from:to:date:in-reply-to :references:content-type:content-transfer-encoding:mime-version; s=arcseal; t=1655571468; bh=H+iOqRt+eSNOHYLzGUtda5zsh97OJ1CjyW2 Fup0OZhU=; b=n8xgR+VYn3Iv2iREG9EEIiaqF+EWquM7b/u0DYQn0+etLBlOGN3 ptz9hK1YQq8lMAwsN4Lm552XYYRwmtYLjlcOURVvhTlQLdSzGol+HOiKtB4IdnDK iWsu+UZIwsS48bqOqD20j5tsO4/oZZt+cbRKGq/BgablCzNbH8samZz41vTCH4im FeWHXPPX0cbT8vYnU/u4Q93QgDt6Fy7eSHzpbqu2UpVug2g+cq/f6Gme0QNHPGw5 b8jO6xXt9wIrXHXi01StCrosxsM6PQ93PGdG1/oCwjmhzDJr8ZOlHkUKCP5O0bF5 Cb23B1eS9qFBTXYYyGXk9y7AM+4rQnMoFgA== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=Xo6S3F0t header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.178 (mail-lj1-f178.google.com); spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lj1-f178.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=4oETB9yX; x-me-sender=none; x-ptr=pass smtp.helo=mail-lj1-f178.google.com policy.ptr=mail-lj1-f178.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.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: gggruggvucftvghtrhhoucdtuddrgedvfedruddvjedguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkffuhf fvffgjfhgtgfgfggesthhqredttderjeenucfhrhhomheprghnughrvgihuddttddutddt uddttdesghhmrghilhdrtghomhenucggtffrrghtthgvrhhnpeffhedviedtkeelgeelvd ekgfeugfeiffeugfffvddvhefgffeitdehgfehfedujeenucfkphepvddtledrkeehrddv tdekrddujeekpdekhedrudejgedrudelledrkedvnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehinhgvthepvddtledrkeehrddvtdekrddujeekpdhhvghlohepmhgr ihhlqdhljhduqdhfudejkedrghhoohhglhgvrdgtohhmpdhmrghilhhfrhhomhepoegrnh gurhgvhidutddtuddttddutddtsehgmhgrihhlrdgtohhmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'andrey100100100@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="andrey100100100@gmail.com"; helo=mail-lj1-f178.google.com; client-ip=209.85.208.178 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 12:57:47 -0400 (EDT) (envelope-from andrey100100100@gmail.com) Received: by mail-lj1-f178.google.com with SMTP id d19so7717078lji.10 for <9fans@9fans.net>; Sat, 18 Jun 2022 09:57:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=H+iOqRt+eSNOHYLzGUtda5zsh97OJ1CjyW2Fup0OZhU=; b=4oETB9yXac1Hd1RzABVT4A0pETGDVlIQo1hhXpZ1nor2H3eFGaD5ghUCF7On8znWs/ YwmoTtkYs5C+QIbA4wSUpBmlydRo0/LlGorIXVIYrA385jp62T7ubylfkpEjBUYX8Imp JeMPkbX6Bds/Fbi/E6CeOSnTZH3FRJ6jYuquCgr16USqk3vksxfQGCjem8w8/FvVXRBG HQ4S/J+eXtxc6pdx4LP1O7ZAKy5Qq6oG/CmeWJB0Aw04EQIl4qrOyxKx/g8Do24nmP7j NnkJlL25g6fqIn46tmr5/s7zLzMbi7YZHwZbfQbiU6gxEFKQP5f9JJig7SXCAmDvCFhj i2/w== X-Gm-Message-State: AJIora+UKFvCiecF2UKqye3JUjB4UHCI+ZS4dRK1ITG+ZA8/LPDaLJcX /Ig6Qd1Gm/Tl8vAZz+v2KrxwxQr/i1w= X-Google-Smtp-Source: AGRyM1vNDtbo2uTH8PyTqzJy5NFl3ly+abuEdU4rI3rQmxctG3nzzfEleLUX7j4SpJJV79nNHhOaIQ== X-Received: by 2002:a2e:874a:0:b0:255:7b02:8f26 with SMTP id q10-20020a2e874a000000b002557b028f26mr7825221ljj.320.1655571466664; Sat, 18 Jun 2022 09:57:46 -0700 (PDT) Received: from [10.33.77.10] ([85.174.199.82]) by smtp.gmail.com with ESMTPSA id p20-20020a2e9a94000000b00258e01fbcf1sm979119lji.96.2022.06.18.09.57.45 for <9fans@9fans.net> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jun 2022 09:57:45 -0700 (PDT) Message-ID: <658d1591a1abef7c4a85ea3bbf23777b38247893.camel@gmail.com> Subject: Re: [9fans] syscall silently kill processes From: andrey100100100@gmail.com To: 9fans@9fans.net Date: Sat, 18 Jun 2022 19:57:44 +0300 In-Reply-To: <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> <64a85bad-7ab-fb6-6517-acfafa819bc@SDF.ORG> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1 MIME-Version: 1.0 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: cb0513b2-ef27-11ec-9c35-a1e28d9de115 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmE2ODIzMDQ4YWQ5MGEyMS1NYzU1ODIzOTlkNmM1NTllYzUzZWRk?= =?UTF-8?B?ZDU5Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mc5582399d6c559ec53eddd59:1:d8NRCyuvQ0mk0ZM-qWc0E9VCZFZAZHytBAxpprtO4Qw =D0=92 =D0=A1=D0=B1, 18/06/2022 =D0=B2 08:37 +0000, adr =D0=BF=D0=B8=D1=88= =D0=B5=D1=82: > On Sat, 18 Jun 2022, andrey100100100@gmail.com=C2=A0wrote: >=20 > > --------------------------------------------- > >=20 > > cpu% 6.out | grep end | wc -l > > =C2=A0=C2=A0=C2=A0 33 > >=20 > >=20 > > Problem in unregistered handlers. >=20 > 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.=C2=A0 The process dies, because the handler that suppresses the default behavior on note 'alarm' is not registered. And the default behavior is death. > The documentation describes another behaivor. To > me it smells like bug barbecue (corrupted onnote?). Maybe I got > something wrong, bear with me. >=20 > > > 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. > >=20 > > I'm don't understand how handler in threadmain would solve the > > problem. > > I need in 'alarm' on per process basis. >=20 > You need alarm() in every process, but you don't need to register the > same handler 80 times! Perhaps I need different handlers for different processes. Or, for some processes, I need a default behavior, and for some others, a handler. >=20 > adr. >=20 Regards, Andrej ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfa6823048ad90a21-Mc5582= 399d6c559ec53eddd59 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription