$OpenBSD: patch-sysdeps_openbsd_procargs_c,v 1.11 2016/01/12 16:38:29 ajacoutot Exp $

From de408a6bba216ebcbc47f902e4add54e8ad7008f Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@gnome.org>
Date: Tue, 12 Jan 2016 17:14:20 +0100
Subject: openbsd: only PID 1 is special (init)

--- sysdeps/openbsd/procargs.c.orig	Mon Aug 17 20:59:37 2015
+++ sysdeps/openbsd/procargs.c	Tue Jan 12 17:23:41 2016
@@ -56,11 +56,8 @@ glibtop_get_proc_args_p (glibtop *server, glibtop_proc
 
 	memset (buf, 0, sizeof (glibtop_proc_args));
 
-	/*
-	 * Don't bother with PIDs below 20, because everything below this
-	 * number is highly likely to be a kernel thread.
-	 */
-	if (pid < 19) return NULL;
+	/* Ignore init */
+	if (pid < 2) return NULL;
 
 	glibtop_suid_enter (server);
 
