mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 20:09:41 +01:00
fix plan9 support
This commit is contained in:
parent
1ab06949bf
commit
ccfc059755
@ -84,15 +84,6 @@ type Server struct {
|
|||||||
semaphores ServerSemaphores
|
semaphores ServerSemaphores
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
|
||||||
// ServerExitSignals are the signals the server will exit on.
|
|
||||||
ServerExitSignals = []os.Signal{
|
|
||||||
syscall.SIGINT,
|
|
||||||
syscall.SIGTERM,
|
|
||||||
syscall.SIGQUIT,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
// NewServer returns a new Oragono server.
|
// NewServer returns a new Oragono server.
|
||||||
func NewServer(config *Config, logger *logger.Manager) (*Server, error) {
|
func NewServer(config *Config, logger *logger.Manager) (*Server, error) {
|
||||||
// initialize data structures
|
// initialize data structures
|
||||||
|
20
irc/signals.go
Normal file
20
irc/signals.go
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// +build !plan9
|
||||||
|
|
||||||
|
// Copyright (c) 2020 Shivaram Lingamneni
|
||||||
|
// released under the MIT license
|
||||||
|
|
||||||
|
package irc
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
// ServerExitSignals are the signals the server will exit on.
|
||||||
|
ServerExitSignals = []os.Signal{
|
||||||
|
syscall.SIGINT,
|
||||||
|
syscall.SIGTERM,
|
||||||
|
syscall.SIGQUIT,
|
||||||
|
}
|
||||||
|
)
|
20
irc/signals_plan9.go
Normal file
20
irc/signals_plan9.go
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// +build plan9
|
||||||
|
|
||||||
|
// Copyright (c) 2020 Shivaram Lingamneni
|
||||||
|
// released under the MIT license
|
||||||
|
|
||||||
|
package irc
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
// ServerExitSignals are the signals the server will exit on.
|
||||||
|
// (no SIGQUIT on plan9)
|
||||||
|
ServerExitSignals = []os.Signal{
|
||||||
|
syscall.SIGINT,
|
||||||
|
syscall.SIGTERM,
|
||||||
|
}
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user