Skip to content

Commit 818c6c1

Browse files
authored
Merge pull request #472 from vporoshok/main
Fixing error on negative value of LISTEN_FDS
2 parents b5cde0a + de1b3a8 commit 818c6c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activation/files_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func Files(unsetEnv bool) []*os.File {
5151
}
5252

5353
nfds, err := strconv.Atoi(os.Getenv("LISTEN_FDS"))
54-
if err != nil || nfds == 0 {
54+
if err != nil || nfds <= 0 {
5555
return nil
5656
}
5757

0 commit comments

Comments
 (0)