user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 0/2] fix race from stdout buffering in FD pass exit
Date: Sun,  3 Jan 2021 11:24:49 +0000	[thread overview]
Message-ID: <20210103112451.75313-1-e@80x24.org> (raw)
In-Reply-To: <20210103094842.22906-1-e@80x24.org>

I implemented 1/2 thinking in hopes it would help, but it's
a nice syscall reduction anyways.

2/2 is the actual fix I've been struggling to find, and I could
only reproduce it on this FreeBSD VM I have access to.  It seems
so obvious in retrospect :x

Eric Wong (2):
  send and receive all 3 FDs at once
  lei: fix output race in client/daemon mode

 lib/PublicInbox/LEI.pm   | 33 +++++++++++++++----------
 lib/PublicInbox/Spawn.pm | 53 ++++++++++++++++++++++++++--------------
 script/lei               |  6 ++---
 t/lei.t                  |  2 +-
 t/spawn.t                | 33 ++++++++++++++++---------
 5 files changed, 80 insertions(+), 47 deletions(-)

  parent reply	other threads:[~2021-01-03 11:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-03  9:48 [PATCH 0/3] lei-related test fixes Eric Wong
2021-01-03  9:48 ` [PATCH 1/3] t/lei: use $lei->() callback wrapper Eric Wong
2021-01-03  9:48 ` [PATCH 2/3] testcommon: prepare_redirects: fix error message Eric Wong
2021-01-03  9:48 ` [PATCH 3/3] spawn: support send_fd+recv_fd w/o IO::FDPass Eric Wong
2021-01-03 11:24 ` Eric Wong [this message]
2021-01-03 11:24   ` [PATCH 1/2] send and receive all 3 FDs at once Eric Wong
2021-01-03 11:24   ` [PATCH 2/2] lei: fix output race in client/daemon mode Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210103112451.75313-1-e@80x24.org \
    --to=e@80x24.org \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).