Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > 320f7cb0c0f06d03983ac078a4817e2f > files > 2

vdr-plugin-vdrrip-0.3.0-9plf2010.0.src.rpm

#!/bin/sh /usr/share/dpatch/dpatch-run

## greppid2 patch by Thomas Günther <tom@toms-cafe.de>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Detect second running process instead of third.

@DPATCH@
diff -urNad /usr/src/cvs/vdr-plugin-vdrrip/scripts/queuehandler.sh vdr-plugin-vdrrip/scripts/queuehandler.sh
--- /usr/src/cvs/vdr-plugin-vdrrip/scripts/queuehandler.sh      Sat Apr 24 00:53:50 2004
+++ vdr-plugin-vdrrip/scripts/queuehandler.sh   Sat Apr 24 00:56:59 2004
@@ -90,7 +90,7 @@
 
   local pids=`pgrep -d" " "$scriptname"`
   local pid1=`echo "$pids" | cut -d" " -f1`
-  local pid2=`echo "$pids" | cut -d" " -f3`
+  local pid2=`echo "$pids" | cut -d" " -f2`
 
   if [ "$pid1" != "$pid2" ]
   then