feat: build wahrwelt A/D toolkit

This commit is contained in:
TakuyaYagam1 committed 2026-10-14 11:30:41 +03:00
1 parent 303438d206
commit 653924d8c6
564 files changed
+36310 -49998

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
package main
import (
"context"
"log"
"os"
"os/signal"
"github.com/c4t-but-s4d/neo/v2/cmd/client/cmd"
"github.com/c4t-but-s4d/neo/v2/internal/client"
)
func main() {
if err := client.HardenProcess(); err != nil {
log.Fatalf("Не удалось ограничить чтение памяти worker через /proc: %v", err)
}
ctx, cancel := context.WithCancel(context.Background())
done := make(chan interface{}, 1)
go func() {
cmd.Execute(ctx)
done <- nil
}()
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
select {
case <-c:
cancel()
<-done
case <-done:
}
}