/[baselayout]/trunk/sbin/rc-daemon.sh
Gentoo

Diff of /trunk/sbin/rc-daemon.sh

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

Revision 1582 Revision 1583
279 [[ ${pids// ${pid} } == ${pids} ]] && return 1 279 [[ ${pids// ${pid} } == ${pids} ]] && return 1
280 fi 280 fi
281 pids=${pid} 281 pids=${pid}
282 fi 282 fi
283 283
284 # If there's nothing to kill then return without error
285 [[ -z ${pids} ]] && return 0
286
284 # We may not have pgrep to find our children, so we provide 287 # We may not have pgrep to find our children, so we provide
285 # two methods 288 # two methods
286 if [[ ${RC_KILL_CHILDREN} == "yes" ]]; then 289 if [[ ${RC_KILL_CHILDREN} == "yes" ]]; then
287 if [[ -x /usr/bin/pgrep ]]; then 290 if [[ -x /usr/bin/pgrep ]]; then
288 pids="${pids} $(pgrep -P ${pids// /,})" 291 pids="${pids} $(pgrep -P ${pids// /,})"

Legend:
Removed from v.1582  
changed lines
  Added in v.1583

  ViewVC Help
Powered by ViewVC 1.1.20