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

Goon driver doesn't send SIGKILL in Process.stop #39

Open
ku1ik opened this issue May 30, 2017 · 0 comments
Open

Goon driver doesn't send SIGKILL in Process.stop #39

ku1ik opened this issue May 30, 2017 · 0 comments

Comments

@ku1ik
Copy link

ku1ik commented May 30, 2017

I installed goon to get SIGKILL support when calling Process.stop/1 but it actually doesn't work. See this iex session:

iex(1)> p = Porcelain.spawn("bash", ["-c", "trap '' SIGTERM; echo sleeping...; sleep 30; date >here.txt"])
%Porcelain.Process{err: nil, out: :string, pid: #PID<0.315.0>}
iex(2)> Porcelain.Process.await(p, 1000)
{:error, :timeout}
iex(3)> Porcelain.Process.stop(p)
true
iex(4)> File.read "here.txt"
{:error, :enoent}

30 seconds later:

iex(5)> File.read "here.txt"
{:ok, "Tue May 30 09:54:24 UTC 2017\n"}
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

1 participant