all repos — honk @ c31318c11751d5c7f13ac23bfc29976460db8cb7

my fork of honk

ok, try not to lose the pipe too soon
Ted Unangst tedu@tedunangst.com
Thu, 24 Feb 2022 17:00:00 -0500
commit

c31318c11751d5c7f13ac23bfc29976460db8cb7

parent

ca598399f31e6d1b408791d588048d4bac294c69

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M backend.gobackend.go

@@ -78,7 +78,7 @@ func orphancheck() {

var b [1]byte os.Stdin.Read(b[:]) dlog.Printf("backend shutting down") - //os.Exit(0) + os.Exit(0) } func backendServer() {

@@ -112,7 +112,7 @@ srv.Accept(lis)

} func runBackendServer() { - r, _, err := os.Pipe() + r, w, err := os.Pipe() if err != nil { elog.Panicf("can't pipe: %s", err) }

@@ -126,4 +126,5 @@ elog.Panicf("can't exec backend: %s", err)

} err = proc.Wait() elog.Printf("lost the backend: %s", err) + w.Close() }