user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
 Warning: Initial query:
 %22index: avoid setting NPROC to undef%22
 returned no results, used:
 "index: avoid setting NPROC to undef"
 instead

Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH] index: avoid setting NPROC to undef
@ 2018-05-16  5:33  7% Eric Wong
  0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2018-05-16  5:33 UTC (permalink / raw)
  To: meta

This quiets a warning inside Spawn.pm
---
 script/public-inbox-index | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/public-inbox-index b/script/public-inbox-index
index db7ebba..2a7a524 100755
--- a/script/public-inbox-index
+++ b/script/public-inbox-index
@@ -101,7 +101,7 @@ sub index_dir {
 		eval { require PublicInbox::V2Writable };
 		die "v2 requirements not met: $@\n" if $@;
 		my $v2w = eval {
-			local $ENV{NPROC} = $jobs if $jobs;
+			$jobs and local $ENV{NPROC} = $jobs;
 			PublicInbox::V2Writable->new($repo);
 		};
 		if (defined $jobs) {
-- 
EW


^ permalink raw reply related	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2018-05-16  5:33  7% [PATCH] index: avoid setting NPROC to undef 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).