Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thrust-shell.exe close problem. #65

Open
ahmetorhans opened this issue Feb 1, 2016 · 3 comments
Open

Thrust-shell.exe close problem. #65

ahmetorhans opened this issue Feb 1, 2016 · 3 comments

Comments

@ahmetorhans
Copy link

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 ahmetorhans changed the title Trust-shell.exe close problem. Thrust-shell.exe close problem. Feb 1, 2016
@miketheprogrammer
Copy link
Owner

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
Copy link
Collaborator

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants