$OpenBSD: patch-src-tilda_c,v 1.2 2008/02/11 09:03:31 jasper Exp $
--- src/tilda.c.orig	Mon Feb 11 00:07:47 2008
+++ src/tilda.c	Mon Feb 11 00:08:14 2008
@@ -206,7 +206,7 @@ static gint remove_stale_lock_files (gchar *home_direc
 
     GSList *pids = NULL;
     FILE *ps_output;
-    const gchar ps_command[] = "ps -C tilda -o pid=";
+    const gchar ps_command[] = "/usr/bin/pgrep tilda";
     gchar buf[16]; /* Really shouldn't need more than 6 */
 
     if ((ps_output = popen (ps_command, "r")) == NULL)
