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

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

Post 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)

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post