user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] index: avoid setting NPROC to undef
@ 2018-05-16  5:33 Eric Wong
  0 siblings, 0 replies; only message in thread
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	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-16  5:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16  5:33 [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).