aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-04-13 13:05:21 +0800
committermarcus <marcus@FreeBSD.org>2004-04-13 13:05:21 +0800
commita8b6f06b4a5fec3aabe96eee295d0b923610c8e2 (patch)
tree6f1afda9652112d54aef85105c05c7b2f3509572
parentc6af4bc8d0680c8ed8ee8b3c3be1ec8fe3413edb (diff)
downloadfreebsd-ports-gnome-a8b6f06b4a5fec3aabe96eee295d0b923610c8e2.tar.gz
freebsd-ports-gnome-a8b6f06b4a5fec3aabe96eee295d0b923610c8e2.tar.zst
freebsd-ports-gnome-a8b6f06b4a5fec3aabe96eee295d0b923610c8e2.zip
Fix a potential crash when looking at the process list due to a missing
field name.
-rw-r--r--sysutils/gnome-system-monitor/Makefile1
-rw-r--r--sysutils/gnome-system-monitor/files/patch-src::proctable.c30
-rw-r--r--sysutils/gnomesystemmonitor/Makefile1
-rw-r--r--sysutils/gnomesystemmonitor/files/patch-src::proctable.c30
4 files changed, 44 insertions, 18 deletions
diff --git a/sysutils/gnome-system-monitor/Makefile b/sysutils/gnome-system-monitor/Makefile
index ddf03c8cbaf9..bc7d76f751b2 100644
--- a/sysutils/gnome-system-monitor/Makefile
+++ b/sysutils/gnome-system-monitor/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnomesystemmonitor
PORTVERSION= 2.6.0
+PORTREVISION= 1
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-system-monitor/2.6
diff --git a/sysutils/gnome-system-monitor/files/patch-src::proctable.c b/sysutils/gnome-system-monitor/files/patch-src::proctable.c
index 5cb348a5aabb..1d706de36701 100644
--- a/sysutils/gnome-system-monitor/files/patch-src::proctable.c
+++ b/sysutils/gnome-system-monitor/files/patch-src::proctable.c
@@ -1,6 +1,18 @@
---- src/proctable.c.orig Sat Jun 7 04:35:32 2003
-+++ src/proctable.c Thu Sep 4 16:29:18 2003
-@@ -539,6 +539,9 @@
+--- src/proctable.c.orig Sun Feb 8 10:06:08 2004
++++ src/proctable.c Tue Apr 13 01:01:51 2004
+@@ -147,8 +147,9 @@
+ G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
+ G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
+ G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
+- G_TYPE_INT, G_TYPE_INT, G_TYPE_INT,
+- GDK_TYPE_PIXBUF, G_TYPE_POINTER);
++ G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT,
++ G_TYPE_INT, GDK_TYPE_PIXBUF,
++ G_TYPE_POINTER);
+
+ proctree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model));
+ gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (proctree), TRUE);
+@@ -547,6 +548,9 @@
glibtop_get_proc_uid (&procuid, pid);
glibtop_get_proc_time (&proctime, pid);
newcputime = proctime.utime + proctime.stime;
@@ -9,8 +21,8 @@
+ }
model = gtk_tree_view_get_model (GTK_TREE_VIEW (procdata->tree));
- info->mem = procmem.size;
-@@ -620,6 +623,9 @@
+ wnck_pid_read_resource_usage (gdk_screen_get_display (gdk_screen_get_default ()),
+@@ -651,6 +655,9 @@
glibtop_get_proc_uid (&procuid, pid);
glibtop_get_proc_time (&proctime, pid);
newcputime = proctime.utime + proctime.stime;
@@ -18,9 +30,9 @@
+ newcputime /= (proctime.frequency/100);
+ }
- arguments = glibtop_get_proc_args (&procargs, pid, 0);
- get_process_name (procdata, info, procstate.cmd, arguments);
-@@ -709,12 +715,20 @@
+ wnck_pid_read_resource_usage (gdk_screen_get_display (gdk_screen_get_default ()),
+ pid,
+@@ -751,12 +758,20 @@
return NULL;
}
@@ -41,7 +53,7 @@
while (i < n)
{
-@@ -812,6 +826,9 @@
+@@ -848,6 +863,9 @@
** should probably have a total_time_last gint in the ProcInfo structure */
glibtop_get_cpu (&cpu);
total_time = cpu.total - total_time_last;
diff --git a/sysutils/gnomesystemmonitor/Makefile b/sysutils/gnomesystemmonitor/Makefile
index ddf03c8cbaf9..bc7d76f751b2 100644
--- a/sysutils/gnomesystemmonitor/Makefile
+++ b/sysutils/gnomesystemmonitor/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnomesystemmonitor
PORTVERSION= 2.6.0
+PORTREVISION= 1
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-system-monitor/2.6
diff --git a/sysutils/gnomesystemmonitor/files/patch-src::proctable.c b/sysutils/gnomesystemmonitor/files/patch-src::proctable.c
index 5cb348a5aabb..1d706de36701 100644
--- a/sysutils/gnomesystemmonitor/files/patch-src::proctable.c
+++ b/sysutils/gnomesystemmonitor/files/patch-src::proctable.c
@@ -1,6 +1,18 @@
---- src/proctable.c.orig Sat Jun 7 04:35:32 2003
-+++ src/proctable.c Thu Sep 4 16:29:18 2003
-@@ -539,6 +539,9 @@
+--- src/proctable.c.orig Sun Feb 8 10:06:08 2004
++++ src/proctable.c Tue Apr 13 01:01:51 2004
+@@ -147,8 +147,9 @@
+ G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
+ G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
+ G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
+- G_TYPE_INT, G_TYPE_INT, G_TYPE_INT,
+- GDK_TYPE_PIXBUF, G_TYPE_POINTER);
++ G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT,
++ G_TYPE_INT, GDK_TYPE_PIXBUF,
++ G_TYPE_POINTER);
+
+ proctree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model));
+ gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (proctree), TRUE);
+@@ -547,6 +548,9 @@
glibtop_get_proc_uid (&procuid, pid);
glibtop_get_proc_time (&proctime, pid);
newcputime = proctime.utime + proctime.stime;
@@ -9,8 +21,8 @@
+ }
model = gtk_tree_view_get_model (GTK_TREE_VIEW (procdata->tree));
- info->mem = procmem.size;
-@@ -620,6 +623,9 @@
+ wnck_pid_read_resource_usage (gdk_screen_get_display (gdk_screen_get_default ()),
+@@ -651,6 +655,9 @@
glibtop_get_proc_uid (&procuid, pid);
glibtop_get_proc_time (&proctime, pid);
newcputime = proctime.utime + proctime.stime;
@@ -18,9 +30,9 @@
+ newcputime /= (proctime.frequency/100);
+ }
- arguments = glibtop_get_proc_args (&procargs, pid, 0);
- get_process_name (procdata, info, procstate.cmd, arguments);
-@@ -709,12 +715,20 @@
+ wnck_pid_read_resource_usage (gdk_screen_get_display (gdk_screen_get_default ()),
+ pid,
+@@ -751,12 +758,20 @@
return NULL;
}
@@ -41,7 +53,7 @@
while (i < n)
{
-@@ -812,6 +826,9 @@
+@@ -848,6 +863,9 @@
** should probably have a total_time_last gint in the ProcInfo structure */
glibtop_get_cpu (&cpu);
total_time = cpu.total - total_time_last;