Skip to content

Commit 602522b

Browse files
committed
A bugfix
1 parent 22ea70c commit 602522b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func main() {
290290
os.Exit(0)
291291
}
292292

293-
if !*flRecursiveProcessLimit {
293+
if *flRecursiveProcessLimit {
294294
if _, hasMasterLimitServer := os.LookupEnv(EnvGparallelChildLimitSocket); !hasMasterLimitServer {
295295
createLimitServer()
296296
}

runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ func runWithStdin(command []string, stdin io.Reader) (result *ProcessResult) {
345345
var exitErr *exec.ExitError
346346
if errors.As(err, &exitErr) {
347347
result.exitCode <- exitErr.ExitCode()
348+
return
348349
}
349350
if err != nil {
350351
log.Fatalf("Failed to wait for command %s: %v\n", shellescape.QuoteCommand(command), err)

0 commit comments

Comments
 (0)