Skip to content

Commit

Permalink
Add comment pointing to puma sources
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoanjo committed Nov 24, 2023
1 parent e997632 commit e430e78
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/datadog/core/remote/worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
end
end

# See https://github.com/puma/puma/blob/32e011ab9e029c757823efb068358ed255fb7ef4/lib/puma/cluster.rb#L353-L359
it 'marks the worker thread as fork-safe (to avoid fork-safety warnings in webservers)' do
worker.start

Expand Down
1 change: 1 addition & 0 deletions spec/datadog/core/workers/async_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@
end
end

# See https://github.com/puma/puma/blob/32e011ab9e029c757823efb068358ed255fb7ef4/lib/puma/cluster.rb#L353-L359
it 'marks the worker thread as fork-safe (to avoid fork-safety warnings in webservers)' do
worker.perform

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
expect(Thread.list.map(&:name)).to include(described_class.name)
end

# See https://github.com/puma/puma/blob/32e011ab9e029c757823efb068358ed255fb7ef4/lib/puma/cluster.rb#L353-L359
it 'marks the new thread as fork-safe' do
start

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
start
end

# See https://github.com/puma/puma/blob/32e011ab9e029c757823efb068358ed255fb7ef4/lib/puma/cluster.rb#L353-L359
it 'marks the new thread as fork-safe' do
start

Expand Down
1 change: 1 addition & 0 deletions spec/datadog/tracing/workers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
end
end

# See https://github.com/puma/puma/blob/32e011ab9e029c757823efb068358ed255fb7ef4/lib/puma/cluster.rb#L353-L359
it 'marks the worker thread as fork-safe (to avoid fork-safety warnings in webservers)' do
worker.start

Expand Down

0 comments on commit e430e78

Please sign in to comment.