Page 1 of 1

Wie kann das beheben, wenn ein GO -Code aus dem Terminal ein Zombie -Prozess erstellt wird?

Posted: 06 Feb 2025, 06:21
by Anonymous
package main

import (
"context"
"fmt"
"net/http"
"os"
"os/signal"
"syscall"
"golang.org/x/sync/errgroup"
)
func main() {
ctx, cancel := context.WithCancel(context.Background())

go func() {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGTSTP)