Setting Process name in Ruby

Whoa, how stupid. All you have to do is:

1
2
if((pid = fork()).nil?)
  $0 = "ruby #{worker_klass.worker_name}"
Categories: ruby

Comments (1)

Leave a Reply

Your email address will not be published. Required fields are marked *

*