$OpenBSD: patch-src_orca_orca_in,v 1.5 2009/10/13 14:21:16 jasper Exp $
--- src/orca/orca.in.orig	Tue Oct 13 15:58:07 2009
+++ src/orca/orca.in	Tue Oct 13 15:59:10 2009
@@ -28,11 +28,6 @@
 # __copyright__ = "Copyright (c) 2006-2008 Sun Microsystems Inc."
 # __license__   = "LGPL"
 
-# Set the user's $PATH for this script.
-#
-PATH="${PATH}:/usr/ccs/bin:/usr/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/X11R6/bin"
-export PATH
-
 # Save the arguments away.
 #
 ARGS="$*"
@@ -84,7 +79,7 @@ restoreXmodmap()
 cleanup()
 {
     USERID=`id | cut -f2 -d= | cut -f1 -d\(`
-    PIDS=`ps -eo pid,ruid,args | grep $USERID | \
+    PIDS=`ps -xo pid,ruid,args | grep $USERID | \
 	egrep "orca[.]orca|OAFIID[:]GNOME_Speech|OAFIID[:]GNOME_Magnifier|festival [-][-]server"|\
 	grep -v grep | awk '{ print $1 }'`
     IFS='
