Project

General

Profile

Bug #15269

Process.setproctitle has odd behaviour on Mac OS X

Added by ioquatix (Samuel Williams) over 1 year ago. Updated over 1 year ago.

Status:
Third Party's Issue
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:89631]

Description

On Mac OS X, using Process.setproctitle does seem to update when inspecting the process using ps but doesn't seem to update the process title in htop.

I don't know why.

Here is my test script.

#!/usr/bin/env ruby

Process.setproctitle "Preparing for sleep..."

10.times do |i|
    puts "Counting sheep #{i}"
    Process.setproctitle "Counting sheep #{i}"

    sleep 10
end

puts "Zzzzzzz"

If I restart htop it updates.

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Status changed from Open to Third Party's Issue

It isn't ruby specific.
Seems like an issue of htop, it just does not update the info.

Updated by ioquatix (Samuel Williams) over 1 year ago

I will test on another language, e.g. Python and see if it works or not.

Also available in: Atom PDF