[Xfce4-commits] <xfce4-panel:devel> Put the id before the plugin name in the wrapper process name.
Nick Schermer
nick at xfce.org
Tue Aug 11 20:31:01 CEST 2009
Updating branch refs/heads/devel
to 57ad9fd4596fb544fffaeca343f97cb7d64118cb (commit)
from e9007087049da7f28d8e202996687bbb178f7b6c (commit)
commit 57ad9fd4596fb544fffaeca343f97cb7d64118cb
Author: Nick Schermer <nick at xfce.org>
Date: Sun Mar 29 12:08:44 2009 +0200
Put the id before the plugin name in the wrapper process name.
wrapper/main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/wrapper/main.c b/wrapper/main.c
index 7ffc0a8..3151622 100644
--- a/wrapper/main.c
+++ b/wrapper/main.c
@@ -256,8 +256,8 @@ main (gint argc, gchar **argv)
#if defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_NAME)
/* change the process name to something that makes sence */
- g_snprintf (process_name, sizeof (process_name), "panel-%s-%d",
- wrapper_name, opt_unique_id);
+ g_snprintf (process_name, sizeof (process_name), "panel-%d-%s",
+ opt_unique_id, wrapper_name);
if (prctl (PR_SET_NAME, (gulong) process_name, 0, 0, 0) == -1)
g_warning ("Failed to set the process name to \"%s\".", process_name);
#endif
More information about the Xfce4-commits
mailing list