[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-core
Subject:    [ruby-core:89634] [Ruby trunk Bug#15269][Third Party's Issue] Process.setproctitle has odd behaviour
From:       nobu () ruby-lang ! org
Date:       2018-10-30 9:43:18
Message-ID: redmine.journal-74671.20181030094316.a038e4f596fe427f () ruby-lang ! org
[Download RAW message or body]

Issue #15269 has been updated by nobu (Nobuyoshi Nakada).

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.


----------------------------------------
Bug #15269: Process.setproctitle has odd behaviour on Mac OS X
https://bugs.ruby-lang.org/issues/15269#change-74671

* Author: ioquatix (Samuel Williams)
* Status: Third Party's Issue
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.5.1p57
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
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.

```ruby
#!/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.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic