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

add hostPID command line arg, to fix zombie fsac after the client is force closed #190

Merged
merged 15 commits into from
Jul 31, 2017

Conversation

enricosada
Copy link
Contributor

@enricosada enricosada commented Jul 26, 2017

add --hostPID command line arg (optional)
used to pass the host process id, when that process exit then fsac will quit too

Pratically, client will pass its PID as --hostPID=123, and when that process die, also fsac will quit.
This should remove issues with zombie process.
in stdio will use the Quit command, and exit function on suave

ref fsharp/zarchive-vim-fsharp#94 (comment)
ref ionide/ionide-vscode-fsharp#374

  • stdio
  • suave

used to pass the host process id, when that process exit then fsac will quit too

different implementation by os, because mono doesnt support Process.Exited event
@enricosada enricosada changed the title [WIP] add hostPID command line arg, so fsac know when kill itself add hostPID command line arg, so fsac know when kill itself Jul 26, 2017
@enricosada enricosada changed the title add hostPID command line arg, so fsac know when kill itself add hostPID command line arg, to fix zombie fsac after the client is force closed Jul 26, 2017
@rneatherway
Copy link
Contributor

Cool idea! @kjnilsson look OK for calling from vim?

@enricosada
Copy link
Contributor Author

@rneatherway dunno why fails (hang) on windows ci.
I tested a lot locally (both windows and unix), i'll check. good having tests on ci :D

@enricosada
Copy link
Contributor Author

strange enough, in my appveyor build image is green (same commits) https://ci.appveyor.com/project/enricosada/fsautocomplete/build/1.0.4

@enricosada enricosada force-pushed the walking_dead_season_finale branch from 7776ac5 to 325d24d Compare July 30, 2017 16:01
@enricosada
Copy link
Contributor Author

@rneatherway i'll merge this.
The feature is optional under a command line flag, the test is ok on both mono/windows (fixed the race conditions).

@enricosada enricosada merged commit 9a758d6 into ionide:master Jul 31, 2017
@rneatherway
Copy link
Contributor

Great, I agree. I will have a look at using this feature with Emacs.

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

Successfully merging this pull request may close these issues.

2 participants