Coming to see in May 2019. Thank you for your help very much!

2012년 8월 23일 목요일 오전 10시 40분 53초 UTC+9, andrey mirtchovski 님의 말:
>
> Jesse is right. When you kill the 'go' command you don't kill the child. 
> Observe on OSX:
>
> $ go run server.go &
> [1] 17246
> 2012/08/22 19:28:02 Listening on port 5001...
> $ killall go
> [1]+  Exit 2                  go run server.go
> $ ps auwx | grep a.out
> andrey         17408   0.0  0.1 20299256   3136 s004  S     7:28PM   
> 0:00.01 
> /var/folders/sr/t9dx6fjs59gff5hs0p0zl9d00000gm/T/go-build297803053/command-line-arguments/_obj/a.out
> $ ./server 
> 2012/08/22 19:28:27 Listening on port 5001...
> 2012/08/22 19:28:27 err: listen tcp <nil>:5001: address already in use
> $ killall a.out
> $ ./server 
> 2012/08/22 19:29:56 Listening on port 5001...
>
> So don't do 'go run', instead do 'go build' and, if that is successful, 
> run the resulting binary which you can signal directly.
>

-- 
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/e01f9ed8-07cb-4490-ada2-6e434892fdbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to