Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 4, 2024
1 parent 2d00985 commit c15e938
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/childprocess/process_spawn_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def send_signal(sig)
end

def _pid
if leader? and ChildProcess.unix?
if leader?
-@pid # negative pid == process group
else
@pid
Expand Down
4 changes: 2 additions & 2 deletions spec/childprocess_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
}
end

if ChildProcess.unix?
if true
it 'kills the full process tree on unix' do
Tempfile.open('kill-process-tree') do |file|
process = write_pid_in_sleepy_grand_child(file.path)
Expand All @@ -309,7 +309,7 @@
wait_until(3) { expect(alive?(pid)).to eql(false) }
end
end
elsif ChildProcess.windows?
elsif false
it 'does not kill the full process tree on windows' do
Tempfile.open('no-kill-process-tree') do |file|
process = write_pid_in_sleepy_grand_child(file.path)
Expand Down

0 comments on commit c15e938

Please sign in to comment.