1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-14 14:15:01 +00:00

👷 start process before prefork server starting

This commit is contained in:
Kiyon 2021-02-02 09:41:11 +08:00
parent 267fd5ec59
commit ecb95fbffc

View File

@ -51,6 +51,9 @@ func (app *App) prefork(addr string, tlsConfig *tls.Config) (err error) {
// kill current child proc when master exits
go watchMaster()
// prepare the server for the start
app.startupProcess()
// listen for incoming connections
return app.server.Serve(ln)
}