Update fiber.go

This commit is contained in:
Fenny 2020-03-24 11:09:20 +01:00 committed by GitHub
parent 513da6e0fa
commit 5c01da0f7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -458,6 +458,7 @@ func (app *Fiber) prefork(address string) (ln net.Listener, err error) {
}
os.Exit(0)
} else {
// 1 core per child
runtime.GOMAXPROCS(1)
ln, err = net.FileListener(os.NewFile(3, ""))
}