After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 605173 - process name change
process name change
Status: RESOLVED DUPLICATE of bug 580505
Product: glib
Classification: Platform
Component: gthread
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2009-12-21 20:58 UTC by spametyl
Modified: 2011-09-05 02:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description spametyl 2009-12-21 20:58:23 UTC
It would be great if it is possible to change thread's name so that will appear in `ps axu` output. Then some applications can use this feature to report status of some actions going in the corresponding threads. I'm not sure if is possible for thread, i know only method by changing argv by corresponding forks.
Comment 1 Marc-Andre Lureau 2009-12-21 22:46:13 UTC
You can read solution from Miguel here:

http://stackoverflow.com/questions/139859/setting-the-thread-proc-pid-cmdline

On Linux, there has been a patch recently merged to rename sibling threads:

http://www.kernelpodcast.org/?s=Thread+renaming
Comment 2 Matthias Clasen 2011-09-05 02:58:09 UTC

*** This bug has been marked as a duplicate of bug 580505 ***