kataras / rizla

:eyes: Rizla builds, runs and monitors your Go Applications with ease. See https://github.com/kataras/iris-cli for Iris users.
MIT License
190 stars 17 forks source link

Running child process has exited and the iris's reloading does not work #1

Closed w20089527 closed 8 years ago

w20089527 commented 8 years ago

When I modified a go file, the iris detected it changed. But the file I modify has some syntax errors, the iris will give some build error. For example:

image

After I finished the go file, in other words it has no syntax errors, the iris detected the changes, and then it will rebuild and reload. But it gave me an error. As follows:

image

And I have looked up the error code, it stands for "No Waiting Child Process". The problem is caused when killing a non-existent process. I have checked the rizla code, maybe we can take this exception as a friendly one.

image

ghost commented 8 years ago

Reference: https://github.com/kataras/iris/issues/304#issuecomment-233811588

ghost commented 8 years ago

I'm surprised, you was correct but we don't want to remove this error, I just fixed it with if err := proc.Release(); err !=nil { return nil } on the killing proc, but you got the point!! Thanks you. Some other things fixed also, you can upgrade with go get -u github.com/kataras/rizla