We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
instance
1 parent 3977136 commit 6386aacCopy full SHA for 6386aac
lib/async/container/forked.rb
@@ -55,9 +55,10 @@ def to_json(...)
55
# Set the process title to the specified value.
56
# @parameter value [String] The name of the process.
57
def name= value
58
- if @name = value
59
- ::Process.setproctitle(@name)
60
- end
+ @name = value
+
+ # This sets the process title to an empty string if the name is nil:
61
+ ::Process.setproctitle(@name.to_s)
62
end
63
64
# The name of the process.
lib/async/container/threaded.rb
@@ -53,7 +53,6 @@ def self.for(thread)
53
54
def initialize(io)
- @name = nil
@thread = ::Thread.current
super
0 commit comments