[server] Add support for forced termination after 6 seconds
This commit is contained in:
parent
55e5c43a95
commit
96b9ae9f23
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||||
|
} ()
|
||||||
|
}
|
||||||
} ()
|
} ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue