Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/functions

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1360 by niro, Sat Jun 4 21:05:01 2011 UTC revision 1361 by niro, Sat Jun 4 21:59:28 2011 UTC
# Line 203  print_status() Line 203  print_status()
203    
204  getpids()  getpids()
205  {  {
206   base=${1##*/}   local base=${1##*/}
207   pidlist=$(pidof -o $$ -o $PPID -x $base)   local opts
208     if [[ $(readlink /bin/pidof) = *busybox ]]
209     then
210     opts=""
211     else
212     opts="-x"
213     fi
214     pidlist=$(pidof -o $$ -o $PPID ${opts} $base)
215  }  }
216    
217  loadproc()  loadproc()

Legend:
Removed from v.1360  
changed lines
  Added in v.1361