From 96b9ae9f236158ca822de2e875a6f3c16e5f3376 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Thu, 15 Aug 2019 20:26:59 +0300 Subject: [PATCH] [server] Add support for forced termination after 6 seconds --- sources/cmd/server/server.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sources/cmd/server/server.go b/sources/cmd/server/server.go index b3ba3a0..0e270d4 100644 --- a/sources/cmd/server/server.go +++ b/sources/cmd/server/server.go @@ -1366,6 +1366,13 @@ func main_0 () (error) { } } () } + if true { + go func () () { + time.Sleep (6 * time.Second) + log.Printf ("[ww] [827c672c] forced exit!\n") + os.Exit (2) + } () + } } () }