go-thrust icon indicating copy to clipboard operation
go-thrust copied to clipboard

Thrust-shell.exe close problem.

Open ahmetorhans opened this issue 9 years ago • 3 comments

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.

ahmetorhans avatar Feb 01 '16 10:02 ahmetorhans

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.

miketheprogrammer avatar Feb 10 '16 16:02 miketheprogrammer

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.

tehbilly avatar Feb 29 '16 14:02 tehbilly

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

miketheprogrammer avatar Jun 29 '16 14:06 miketheprogrammer