From owner-freebsd-questions@freebsd.org Wed Jun 16 06:11:08 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 86AEE65B074 for ; Wed, 16 Jun 2021 06:11:08 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 4G4ZZ36zPLz4jtl for ; Wed, 16 Jun 2021 06:11:07 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 0A7E54E657; Tue, 15 Jun 2021 23:11:07 -0700 (PDT) From: "Ronald F. Guilmette" To: FreeBSD Questions Subject: Re: Is a successful call to write(2) atomic? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27578.1623823866.1@segfault.tristatelogic.com> Content-Transfer-Encoding: quoted-printable Date: Tue, 15 Jun 2021 23:11:07 -0700 Message-ID: <27579.1623823867@segfault.tristatelogic.com> X-Rspamd-Queue-Id: 4G4ZZ36zPLz4jtl X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rfg@tristatelogic.com designates 69.62.255.118 as permitted sender) smtp.mailfrom=rfg@tristatelogic.com X-Spamd-Result: default: False [-0.06 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[69.62.255.118:from]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[tristatelogic.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[69.62.255.118:from:127.0.2.255]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.76)[-0.757]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14051, ipnet:69.62.128.0/17, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2021 06:11:08 -0000 In message Paul Procacci wrote: >This is what I was advocating for. Sorry if that wasn't clear. >It might make sense to provide a visual representation using C pseudo cod= e: >{... snipped...} Thank you Paul. I have the general idea, and I can take it from here. Note that I was -already- having the master/parent process read input and then pass down bits of work-to-be-done to the various "worker bee" child proceses, so I do understand how to code all this up properly. Now I just have to add in some more pipes to pass lines of completed results back up to the parent, in addition to the parent sending stuff down to the children via pipes. Piece of cake. I just hope and trust (and believe) that adding that into my existing code will solve the problem. I think it will. Regards, rfg