]> Cypherpunks.ru repositories - goircd.git/blobdiff - goircd.go
Use modern Go
[goircd.git] / goircd.go
index 6168eaf62d1dd4fa416cb3f9f7b41681fa5d7e68..52891782bcff3f74055a83b6c8a682a2a489c6c7 100644 (file)
--- a/goircd.go
+++ b/goircd.go
@@ -1,6 +1,6 @@
 /*
 goircd -- minimalistic simple Internet Relay Chat (IRC) server
-Copyright (C) 2014-2022 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2023 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -220,7 +220,7 @@ func main() {
        }
        log.Println("goircd", Version, "started")
 
-       needsShutdown := make(chan os.Signal, 0)
+       needsShutdown := make(chan os.Signal, 1)
        signal.Notify(needsShutdown, syscall.SIGTERM, syscall.SIGINT)
        go func() {
                <-needsShutdown