user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 1/7] lei: use send() perlop for signals
  2021-10-14 13:16  6% ` [PATCH 0/7] lei: more process handling fixes Eric Wong
@ 2021-10-14 13:16  7%   ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-10-14 13:16 UTC (permalink / raw)
  To: meta

This may save us a small bit of startup time since there's
fewer args and opcodes should be smaller.
---
 script/lei | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/script/lei b/script/lei
index 8f6e8aacb86b..5cad19d77603 100755
--- a/script/lei
+++ b/script/lei
@@ -107,8 +107,8 @@ my $buf = join("\0", scalar(@ARGV), @ARGV);
 while (my ($k, $v) = each %ENV) { $buf .= "\0$k=$v" }
 $buf .= "\0\0";
 $send_cmd->($sock, [0, 1, 2, fileno($dh)], $buf, MSG_EOR) or die "sendmsg: $!";
-$SIG{TSTP} = sub { $send_cmd->($sock, [], 'STOP', MSG_EOR); kill 'STOP', $$ };
-$SIG{CONT} = sub { $send_cmd->($sock, [], 'CONT', MSG_EOR) };
+$SIG{TSTP} = sub { send($sock, 'STOP', MSG_EOR); kill 'STOP', $$ };
+$SIG{CONT} = sub { send($sock, 'CONT', MSG_EOR) };
 
 my $x_it_code = 0;
 while (1) {

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/7] lei: more process handling fixes
  @ 2021-10-14 13:16  6% ` Eric Wong
  2021-10-14 13:16  7%   ` [PATCH 1/7] lei: use send() perlop for signals Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-10-14 13:16 UTC (permalink / raw)
  To: meta

"lei up --all" SIGTSTP/CONT/INT handling was totally
broken and now fixed.  And we put cat-file processes
into their own pgrp, so it avoids scary errors when
hitting Ctrl-C on -extindex, too.

Automated testing of interactive stuff is tricky, so
it's not being done, currently :<

Eric Wong (7):
  lei: use send() perlop for signals
  git: async_err shows retried requests properly
  git: ->fail invokes current callback
  git: cat-file --batch are their own pgrp
  lei: TSTP affects all curl and related subprocesses
  lei up: actually rely on DESTROY for --all
  lei up --all: send signals to workers, receive errors

 MANIFEST                      |  1 +
 lib/PublicInbox/AutoReap.pm   | 34 +++++++++++++++++++++++++++++++++
 lib/PublicInbox/Git.pm        | 36 +++++++++++++++++++----------------
 lib/PublicInbox/LEI.pm        | 14 +++++++-------
 lib/PublicInbox/LeiInput.pm   |  7 ++++---
 lib/PublicInbox/LeiMirror.pm  |  8 +++-----
 lib/PublicInbox/LeiRemote.pm  | 13 +++++--------
 lib/PublicInbox/LeiToMail.pm  |  2 +-
 lib/PublicInbox/LeiUp.pm      | 22 ++++++++++++++++++---
 lib/PublicInbox/LeiXSearch.pm | 20 +++++++++----------
 lib/PublicInbox/TestCommon.pm | 36 +++--------------------------------
 script/lei                    |  4 ++--
 12 files changed, 108 insertions(+), 89 deletions(-)
 create mode 100644 lib/PublicInbox/AutoReap.pm

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-10-14  4:32     [PATCH 3/3] lei: give workers their own process group Eric Wong
2021-10-14 13:16  6% ` [PATCH 0/7] lei: more process handling fixes Eric Wong
2021-10-14 13:16  7%   ` [PATCH 1/7] lei: use send() perlop for signals Eric Wong

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).