vcastellm / guard-go

Run and restart go programs when changed
MIT License
24 stars 13 forks source link

Fix process kill on Mac OS X Mavericks #11

Closed Aigeruth closed 9 years ago

Aigeruth commented 10 years ago

The problem: guard-go gets the pid of the go run command and not the pid of the running application. It sends the KILL signal to the go run process and exits, but the child process remains running.

The solution: change the application starting process to go build + ./binary.

Host: Mac OS X Mavericks

$ go version
go version go1.3 darwin/amd64

This pull request is based on #10.

vcastellm commented 10 years ago

I'm not sure if I like this solution, did you tested it?

Aigeruth commented 9 years ago

Yes, I tested it and it works for me. I use it for a go-restful project. But I agree on that it is not the most beautiful solution.

As I see, #8 can be related to this PR.

Aigeruth commented 9 years ago

I've updated this PR.