Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

signals.go 321B

123456789101112131415161718192021
  1. //go:build !plan9
  2. // +build !plan9
  3. // Copyright (c) 2020 Shivaram Lingamneni
  4. // released under the MIT license
  5. package utils
  6. import (
  7. "os"
  8. "syscall"
  9. )
  10. var (
  11. // ServerExitSignals are the signals the server will exit on.
  12. ServerExitSignals = []os.Signal{
  13. syscall.SIGINT,
  14. syscall.SIGTERM,
  15. syscall.SIGQUIT,
  16. }
  17. )