github.com/TeaOSLab/EdgeNode@v1.3.8/internal/utils/exit.go (about)

     1  // Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
     2  
     3  package utils
     4  
     5  import (
     6  	"github.com/TeaOSLab/EdgeNode/internal/events"
     7  	"os"
     8  )
     9  
    10  func Exit() {
    11  	events.Notify(events.EventTerminated)
    12  	os.Exit(0)
    13  }