added WASM support
This commit is contained in:
35
main.go
35
main.go
@@ -1,13 +1,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/Akilan1999/p2p-rendering-computation/cmd"
|
||||
"github.com/urfave/cli/v2"
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
// VERSION specifies the version of the platform
|
||||
@@ -19,20 +16,20 @@ var OS, Pull_location, Run_script string
|
||||
var List_servers, Ip_table bool
|
||||
|
||||
// To be implemented later on
|
||||
func getFireSignalsChannel() chan os.Signal {
|
||||
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c,
|
||||
// https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html
|
||||
syscall.SIGTERM, // "the normal way to politely ask a program to terminate"
|
||||
syscall.SIGINT, // Ctrl+C
|
||||
syscall.SIGQUIT, // Ctrl-\
|
||||
syscall.SIGKILL, // "always fatal", "SIGKILL and SIGSTOP may not be caught by a program"
|
||||
syscall.SIGHUP, // "terminal is disconnected"
|
||||
)
|
||||
return c
|
||||
|
||||
}
|
||||
//func getFireSignalsChannel() chan os.Signal {
|
||||
//
|
||||
// c := make(chan os.Signal, 1)
|
||||
// signal.Notify(c,
|
||||
// // https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html
|
||||
// syscall.SIGTERM, // "the normal way to politely ask a program to terminate"
|
||||
// syscall.SIGINT, // Ctrl+C
|
||||
// syscall.SIGQUIT, // Ctrl-\
|
||||
// syscall.SIGKILL, // "always fatal", "SIGKILL and SIGSTOP may not be caught by a program"
|
||||
// syscall.SIGHUP, // "terminal is disconnected"
|
||||
// )
|
||||
// return c
|
||||
//
|
||||
//}
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
|
||||
Reference in New Issue
Block a user