added WASM support

This commit is contained in:
2025-05-03 01:29:11 +01:00
parent ece1e63fda
commit 034f9e2896
56 changed files with 1293 additions and 10443 deletions

35
main.go
View File

@@ -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()