non-blocking io for linux

This commit is contained in:
Nate Brown
2025-04-02 22:57:37 -05:00
committed by JackDoan
parent 6f022a2fff
commit 685364e10f
4 changed files with 195 additions and 176 deletions

View File

@@ -3,6 +3,9 @@ package main
import (
"flag"
"fmt"
"log"
"net/http"
_ "net/http/pprof"
"os"
"runtime/debug"
"strings"
@@ -71,6 +74,10 @@ func main() {
os.Exit(1)
}
go func() {
log.Println(http.ListenAndServe("0.0.0.0:6060", nil))
}()
if !*configTest {
wait, err := ctrl.Start()
if err != nil {