miketheprogrammer / go-thrust

Cross Platform UI Kit powered by Blink/V8/Chromium Content Lib
MIT License
445 stars 34 forks source link

Thrust-shell.exe close problem. #65

Open ahmetorhans opened 8 years ago

ahmetorhans commented 8 years ago

Hi, i want windows app with go-thrust. So i don't want to open windows command line interface. i use "go build -o MyApp.exe -ldflags "-H windowsgui"" command for build. this command work perfectly. but when i close the program, trust-shell exe is still running.. First thrust-shell.exe is close. Second thrust-shell.exe does not close.. How can I solve this problem? Thanks.

miketheprogrammer commented 8 years ago

So this is a problem with OS signals. Windows just not properly send signals to child processes. We have built a workaround at some point. @tehbilly do you happen to remember this.

tehbilly commented 8 years ago

I don't remember what we did to work around this offhand, but will take a look at it later on today hopefully. Most likely we should do a defer in main() to kill child processes before parent quits.

miketheprogrammer commented 8 years ago

I think the correct solution to this was to use the Thrust.SafeExit or CleanExit command