X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=goircd.go;h=510c81cbdfc956b2485b527b9487c7a9677f1542;hb=HEAD;hp=6168eaf62d1dd4fa416cb3f9f7b41681fa5d7e68;hpb=6f9d7fae374e5ada6c33f585db748f23fbc49f91;p=goircd.git diff --git a/goircd.go b/goircd.go index 6168eaf..510c81c 100644 --- a/goircd.go +++ b/goircd.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev - -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 -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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 +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . package main @@ -220,7 +218,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