File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ func (cli *daemonCLI) start(ctx context.Context) (err error) {
336336 cli .setupConfigReloadTrap ()
337337
338338 // after the daemon is done setting up we can notify systemd api
339- notifyReady ()
339+ go notifyReady ()
340340 log .G (ctx ).Info ("Daemon has completed initialization" )
341341
342342 // Daemon is fully initialized. Start handling API traffic
@@ -369,7 +369,7 @@ func (cli *daemonCLI) start(ctx context.Context) (err error) {
369369 c .Cleanup ()
370370
371371 // notify systemd that we're shutting down
372- notifyStopping ()
372+ go notifyStopping ()
373373 shutdownDaemon (ctx , d )
374374
375375 // shutdown / close BuildKit backend
Original file line number Diff line number Diff line change @@ -50,12 +50,12 @@ func preNotifyReady() error {
5050// notifyReady sends a message to the host when the server is ready to be used
5151func notifyReady () {
5252 // Tell the init daemon we are accepting requests
53- go systemdDaemon .SdNotify (false , systemdDaemon .SdNotifyReady )
53+ _ , _ = systemdDaemon .SdNotify (false , systemdDaemon .SdNotifyReady )
5454}
5555
5656// notifyStopping sends a message to the host when the server is shutting down
5757func notifyStopping () {
58- go systemdDaemon .SdNotify (false , systemdDaemon .SdNotifyStopping )
58+ _ , _ = systemdDaemon .SdNotify (false , systemdDaemon .SdNotifyStopping )
5959}
6060
6161func validateCPURealtimeOptions (cfg * config.Config ) error {
You can’t perform that action at this time.
0 commit comments