File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ import (
1010 "io"
1111 "math"
1212 "os"
13- "os/signal"
1413 "strings"
1514 "sync/atomic"
16- "syscall"
1715 "time"
1816
1917 "github.com/github/gh-ost/go/base"
@@ -103,21 +101,6 @@ func NewMigrator(context *base.MigrationContext) *Migrator {
103101 return migrator
104102}
105103
106- // acceptSignals registers for OS signals
107- func (this * Migrator ) acceptSignals () {
108- c := make (chan os.Signal , 1 )
109-
110- signal .Notify (c , syscall .SIGHUP )
111- go func () {
112- for sig := range c {
113- switch sig {
114- case syscall .SIGHUP :
115- log .Debugf ("Received SIGHUP. Reloading configuration" )
116- }
117- }
118- }()
119- }
120-
121104// initiateHooksExecutor
122105func (this * Migrator ) initiateHooksExecutor () (err error ) {
123106 this .hooksExecutor = NewHooksExecutor (this .migrationContext )
You can’t perform that action at this time.
0 commit comments