mirror of https://github.com/dnomd343/XProxy.git
dnomd343
2 years ago
4 changed files with 36 additions and 66 deletions
@ -1,21 +0,0 @@ |
|||
package main |
|||
|
|||
import ( |
|||
log "github.com/sirupsen/logrus" |
|||
"os" |
|||
"os/signal" |
|||
"syscall" |
|||
) |
|||
|
|||
func main() { |
|||
defer func() { |
|||
if err := recover(); err != nil { |
|||
log.Errorf("Unknown error -> %v", err) |
|||
} |
|||
}() |
|||
|
|||
sigExit := make(chan os.Signal, 1) |
|||
signal.Notify(sigExit, syscall.SIGINT, syscall.SIGTERM) |
|||
<-sigExit |
|||
exit() |
|||
} |
@ -1,24 +0,0 @@ |
|||
package main |
|||
|
|||
import ( |
|||
"os/exec" |
|||
) |
|||
|
|||
var subProcess []*Process |
|||
|
|||
func killSub(sub *Process) { |
|||
defer func() { |
|||
recover() |
|||
}() |
|||
|
|||
} |
|||
|
|||
func waitSub(sub *exec.Cmd) { |
|||
defer func() { |
|||
recover() |
|||
}() |
|||
} |
|||
|
|||
func exit() { |
|||
|
|||
} |
Loading…
Reference in new issue