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 378B

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