Skip to content

Commit de1b3a8

Browse files
committed
Fixing error on negative value of LISTEN_FDS
1 parent 8214e15 commit de1b3a8

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)