Hi,

I've got a REST endpoint coded in go and it communicates with various child 
processes to get it's work done.

I've used 

// Set up to handle signals so we can stop when asked
done := make(chan os.Signal, 3)
signal.Notify(done, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)

and 

<-done

to capture sigTERM and a few others so that when the server is being shut 
down for maintenance it will cleanly finish the requests it is working on 
before it shuts down.

Unfortunately, it seems that the child processes get sigTERM right away and 
as a result they die so the requests that are in flight end up broken.

Did I miss a step?

Thanks,
_M

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/b99a53f4-732a-489c-be6e-572354cf7386n%40googlegroups.com.

Reply via email to