-
Notifications
You must be signed in to change notification settings - Fork 16
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 support for setting process name #56
base: master
Are you sure you want to change the base?
Conversation
@@ -50,7 +50,7 @@ def io_waitreadable_sleep | |||
def test_slow_io_waitreadable_sleep | |||
# This test hits IO::WaitReadable exception multiple times | |||
# For that, this test must run longer than 1 second | |||
assert measure_io_waitreadable_sleep > 1 | |||
assert_operator measure_io_waitreadable_sleep, :>, 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @iuri-gg,
thanks for posting that.
I have to check all the tests for styleguide puposes.
Hey @iuri-gg thanks for coming up with this improvement. It makes sense in any case. I would prefer to store the "id" of the process inside the context vars as well. So you can add those information to your own logs as well. I will check and come-up with more feedback Cheers |
Thanks Tom! Let me know how I can help. |
Hi Tom. Hope all is well. Just pinging on this issue to see if it can be merged. |
Describe the changes
Updates process name for main thread with
[MidiSmtp] #{ARGV.join(' ')} (main)
and for forked threads with[MidiSmtp] #{ARGV.join(' ')} (worker #{idx})
Test case
Steps to check the changes:
ps aux | grep Midi
) is[MidiSmtp] .... (main)
Expected behavior
Thread names should start with
[MidiSmtp]
System tested on (please complete the following information):