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,RCVD_IN_MSPIKE_H2,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15181 invoked from network); 21 Jun 2022 13:47:36 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 21 Jun 2022 13:47:36 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob0.topicbox.com (Postfix) with ESMTP id F176C195C1 for ; Tue, 21 Jun 2022 09:47:30 -0400 (EDT) (envelope-from bounce.mM813e896da7e1be8ab8338198.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id EC88015947C5; Tue, 21 Jun 2022 09:47:30 -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=hm2nTG11 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-lf1-f53.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=1655819250; bh=Hn24YtKS+ss35k8K /ys6CyxCjDjAUNQlmDld7wXmpL4=; b=HFBO5/wSaJ/TvVkjKugTpf6WCYZ0w69W JfNIBodO+MOd6zJHdU4JPJYUBz9rY57cNFyPiUrVuojWUkF+h8uwnuQMkSp9e/KI njcmD8NdndLn8OTYg7GOsevhGVMoRQzdYNu/m/n7uq7u8aqiyPePSrYtrJmxi35B p+TQBn9yg50= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1655819250; b=VrK8C8fg33ZSdZbxJWXr/csejbTT8Mo23SRfSuxarRtSPtE6gr YPlT2XfvyWFzPW+/BVM2vrm3/a13gB+y02U5tQEwVL8FvMCJo3t9Cukp45+Tln6N vu8iGgMausa0bGa0FXw06bbTgdAJkJ3Gi0iPVbcQ2OWffpfYpTwhsNtHg= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=hm2nTG11 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-lf1-f53.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-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=gmail.com header.i=@gmail.com header.b=hm2nTG11 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.167.53 (mail-lf1-f53.google.com); spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lf1-f53.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=Xa9x6AwX; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f53.google.com policy.ptr=mail-lf1-f53.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.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=1655819250; x=1655905650; bh=U4bSI6Mrx2Xcq5bx6DBHOUqtk91u53Ln JRe43/DUO6I=; b=FMY+yud4LwvhS6d8JLxYANYIMLedlU3oEhlmxotuPg7zefLn 12lnOsXr5wQ68tcG5diUnoSTiCyFgnrcBxPIVMRLhMOPkKQoCNNLotFMYUDkGLOV 9HZOvMW3i2xypuIphv3ci0dUSp0tnTqJuCyxogE60MvvkWtVMwr6TIVB0a8= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 4CF5F1594369 for <9fans@9fans.net>; Tue, 21 Jun 2022 09:47:12 -0400 (EDT) (envelope-from andrey100100100@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 2046ED0FE0F; Tue, 21 Jun 2022 09:47:12 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1655819232; b=PTBR3finpsJ6nCX6FPnAyI+9ekxVJ15fslQFPtIgET1qTqhVja qOPsmS2LSH7lVuhLwjWWJZKK4cpE+lEua2oWKiyFmVytNUD0DXqphooDfv+njmvO Nynokd5rNEOlLmHiVXNT9BRiToUJHW03Q4/CE+mMpPXwNgAhjJkyBsLrxmsOah4v gDNBC/NKzLwJTSa6PjIgx02a4yN8toRI+VEZSFA6o9wuBgXehSWJSWYLGBDwYKUg ZwSLN35Q7tK61SJ2coihoISagWKdI35En8YNr528EVkdUK2Q7iT65+OBhmANpAoy +u7gctFvgYh2AVhnX+QvWBGGjGb51Uzbo30w== 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=1655819232; bh=HEXgZ0zl/597Bsh+1AUQZfenIkorgnKJAeC cK8Zn1Kc=; b=AbIFKuWYFgHm4sbuCA0C1YDbEQh94j5G60lTbPt/AnZ+2rPuMlr AbLy35PpD0nclaXxWe8TYpMWFitw7A0yeNvcZfKu/hdp67sOLKLFhvOZWyNS0huR TA2KLqVOascgFcn6Kv4+2XQD5iAOp6v8nhGeFLdsNgSoVwtBy2U1FyQStNh49uGT u8AUeYj4JnBkKpNKSokOUO5VXAi7TbDEz3f5n/9ncf5Of1ASQbWTEiEX9IpxT6PW FaNlwoxC32FSPMnVvZ0zA1h3mjyzq+kigbsWrtkeaSvKs9T8WWN/z2PtrBxC3Y6M RHpDHh58ir0Rz7QUV5ayh6bLNOyKavGWnbw== 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=gmail.com header.i=@gmail.com header.b=hm2nTG11 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.167.53 (mail-lf1-f53.google.com); spf=pass smtp.mailfrom=andrey100100100@gmail.com smtp.helo=mail-lf1-f53.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=Xa9x6AwX; x-me-sender=none; x-ptr=pass smtp.helo=mail-lf1-f53.google.com policy.ptr=mail-lf1-f53.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.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: gggruggvucftvghtrhhoucdtuddrgedvfedrudeffedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkuffhvf ffjghftgfgfgggsehtqhertddtreejnecuhfhrohhmpegrnhgurhgvhidutddtuddttddu tddtsehgmhgrihhlrdgtohhmnecuggftrfgrthhtvghrnhepffdtiefguddtteduffelje dttdetffefffduffeuffefveeuheetvdfffffhveevnecuffhomhgrihhnpehgihhthhhu sgdrtghomhenucfkphepvddtledrkeehrdduieejrdehfedpkeehrddujeegrddvtdeird efkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvtdelrdek hedrudeijedrheefpdhhvghlohepmhgrihhlqdhlfhduqdhfheefrdhgohhoghhlvgdrtg homhdpmhgrihhlfhhrohhmpeeorghnughrvgihuddttddutddtuddttdesghhmrghilhdr tghomheq 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-mx1.topicbox.com; identity=mailfrom; envelope-from="andrey100100100@gmail.com"; helo=mail-lf1-f53.google.com; client-ip=209.85.167.53 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 09:47:11 -0400 (EDT) (envelope-from andrey100100100@gmail.com) Received: by mail-lf1-f53.google.com with SMTP id a2so22475115lfg.5 for <9fans@9fans.net>; Tue, 21 Jun 2022 06:47:11 -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=HEXgZ0zl/597Bsh+1AUQZfenIkorgnKJAeCcK8Zn1Kc=; b=Xa9x6AwXMNYqtKZ9ufSfzdVp1eKlVejhbJdKdtdWfgcJ8oGxf374FfTEip2Cksa6+3 VkwHC/ZY4SQugpw3EBQXb0t42b5k0DMvAtA/UYwoGmPRkVeN2QMBMmu672MOoA4OYiN+ ySjBe+f0dfgHQ5/wt2i76oLtIme50pmYya7rpM86jsTy3R0A5rpXgK5a7TfxrfA0BBgh pgAXxWH3VPic4b7ln6X4CkyTr+4OXcza/lA5I87dveXE3XxKxyIFUnR0n7BNd2joKZNo sCv+lXi74XLWKc2FcUgMuu41iq6fRld1l8v6Fbn1tITVSTPYfA1MsvpdkGtDJ42xkBGJ DhHw== X-Gm-Message-State: AJIora83XmO1T3nJ4FQZw6YrkzDOa8K7CdrP/iweBjr/EtXxVRzIsGir q1A+/T5nOQsM/cZDuppG3kQJ0frja94= X-Google-Smtp-Source: AGRyM1vbXnL0lmH9w44zG1znq0yelykXImcIPTKXWoS7xqs8VumwXVvWSV/0SSsBzHJO1IgChGuCMQ== X-Received: by 2002:a05:6512:3fa6:b0:47d:c87e:f8f8 with SMTP id x38-20020a0565123fa600b0047dc87ef8f8mr16747661lfa.159.1655819229803; Tue, 21 Jun 2022 06:47:09 -0700 (PDT) Received: from [10.33.77.10] ([85.174.206.38]) by smtp.gmail.com with ESMTPSA id v4-20020a2e9244000000b0025a7338317esm529813ljg.64.2022.06.21.06.47.08 for <9fans@9fans.net> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 06:47:08 -0700 (PDT) Message-ID: <7d7dca2a4486a5f4e3057d4d0a9d4fb6789dca6e.camel@gmail.com> Subject: Re: [9fans] syscall silently kill processes From: andrey100100100@gmail.com To: 9fans@9fans.net Date: Tue, 21 Jun 2022 16:47:07 +0300 In-Reply-To: <7d9742ec-51f0-34d1-714-6f308975da34@SDF.ORG> References: <2b857fe-c6df-a6b8-40ec-566c85b7377d@SDF.ORG> <770c427561d318ba28f7f4fb820577398f49fef8.camel@gmail.com> <7d9742ec-51f0-34d1-714-6f308975da34@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: a9e1057c-f168-11ec-8b0c-ef0ca5771012 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmE2ODIzMDQ4YWQ5MGEyMS1NODEzZTg5NmRhN2UxYmU4YWI4MzM4?= =?UTF-8?B?MTk4Pg==?= 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:M813e896da7e1be8ab8338198:1:-GCqCeF7Ye_CYEgFD3D8EsLU71u8JC45Ll_rCxxMEvg =D0=92 =D0=92=D1=82, 21/06/2022 =D0=B2 11:26 +0000, adr =D0=BF=D0=B8=D1=88= =D0=B5=D1=82: > On Tue, 21 Jun 2022, andrey100100100@gmail.com=C2=A0wrote: > > ? ??, 20/06/2022 ? 15:29 -0700, Skip Tavakkolian ?????: > > > 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 > > > libthread: > > >=20 > > > https://gist.github.com/9nut/aaa9b9b6a22d69996b75ccdc6e615c61 > >=20 > > Thanks for the work you've done! > > Yes, I have considered this possibility. > > But it was precisely this kind of code bloat that I wanted to > > avoid. >=20 > It looks like code bloat, but it really isn't. It is doing the job > with the tools of the api according to the paradigm designed in > libthread. That's why the word "cleaner" is completely correct. And one more problem: cpu% 6.out -a 'udp!52.43.121.77!10011' -n 250 -t 7 | grep time | wc -l 6.out 50974: warning: process exceeds 100 file descriptors 6.out 51053: warning: process exceeds 200 file descriptors 6.out 51238: warning: process exceeds 300 file descriptors 6.out 51314: warning: process exceeds 400 file descriptors 6.out 51342: warning: process exceeds 500 file descriptors 6.out 51414: warning: process exceeds 600 file descriptors 6.out 51158: warning: process exceeds 700 file descriptors 250 cpu% ps | grep 6.out | wc -l 751 =D0=A1onsumes three times more resources than it should. >=20 > I think note.c was added to resolve some particual case, and for > the state of note.c, I don't think it has been used too much. >=20 > For example, let's remove note.c. You could obtain the same result > in your example (all processes using the same handler) using atnotify > because the notes are registered to the children when proccreate > uses rfork: >=20 > void > threadmain(int argc, char *argv[]) > { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 atnotify(handler_alarm, 1); >=20 > ./5.out | grep end | wc -l > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 80 >=20 > If you have to use a different handler for each processes you can't > use atnotify because of RFMEM, but you can use the syscalls notify > and noted: >=20 > #include =20 > #include =20 > #include >=20 > static void > handler_alarm(void *, char *msg) > { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if(strstr(msg, "alarm")){ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 print("yes"); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 noted(NCONT); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 return; /* just in case */ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 noted(NDFLT); > } >=20 > static void > proc_udp(void *) > { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 char resp[512]; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 char req[] =3D "request"; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 int fd; > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 notify(handler_alarm); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if((fd =3D dial("udp!185.157.2= 21.201!5678", nil, nil, nil)) >=3D > 0){ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 if(write(fd, req, strlen(req)) =3D=3D strlen(req)){ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fprint(1= , "start\n"); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 alarm(20= 00); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 read(fd,= resp, sizeof(resp)); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 alarm(0); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fprint(1= , "end\n"); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 } > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 close(fd); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 threadexits(nil); > } >=20 > int mainstacksize =3D 5242880; >=20 > void > threadmain(int argc, char *argv[]) > { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for(int i =3D 0; i < 80; i++) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 proccreate(proc_udp, nil, 10240); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sleep(5000); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 threadexitsall(nil); > =C2=A0 } >=20 > ./5.out | grep end | wc -l > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 80 >=20 > Threadnotify is trying to do an atnotify that works with RFMEM, > but to do that onnote should be allocated to grow or shrink (or > have a size thinking in the maximum number of processes the program > could spawn, not the number of handlers a process could register > as in atnotify), instead of pointers to handlers, it should be an > array of pointers to arrays of handlers allocated by each process. >=20 > Now again, does the notes mechanism actually fit in libthread? If > it does it should be fixed, if not removed. >=20 Regards, Andrej ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfa6823048ad90a21-M813e8= 96da7e1be8ab8338198 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription