Setting Process name in Ruby October 30, 2007 Whoa, how stupid. All you have to do is: 1 2 if((pid = fork()).nil?) $0 = "ruby #{worker_klass.worker_name}"