From 7bb40c3e21fa067dee9997bcd580113e63d1ff08 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Thu, 1 Apr 2010 18:05:45 +0200 Subject: Get the rights pids --- bin/istream.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/istream.sh b/bin/istream.sh index 1e843e0..88508d6 100755 --- a/bin/istream.sh +++ b/bin/istream.sh @@ -51,11 +51,13 @@ cd ../ram/$SESSION -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -async 2 -threads 4 - 2>$FFMPEGLOG > ./fifo) & # Store ffmpeg pid -2>/dev/null echo $! > ./ffmpeg.pid +PID=$! +2>/dev/null echo `\ps ax --format pid,ppid | grep "$PID$" | awk {'print $1'}` > ./ffmpeg.pid # Now start segmenter (trap "rm -f ./segmenter.pid" EXIT HUP INT TERM ABRT; 2>/dev/null $SEGMENTERPATH ./fifo $SEGDUR stream stream.m3u8 $HTTP_PATH$SESSION/ $SEGWIN) & # Store segmenter pid -2>/dev/null echo $! > ./segmenter.pid +PID=$! +2>/dev/null echo `\ps ax --format pid,ppid | grep "$PID$" | awk {'print $1'}` > ./segmenter.pid -- cgit v1.2.3