OSDN Git Service

fix: preg_splitのポカミスを修正
authorSushi-k <epgrec@park.mda.or.jp>
Mon, 26 Apr 2010 05:54:35 +0000 (14:54 +0900)
committerSushi-k <epgrec@park.mda.or.jp>
Mon, 26 Apr 2010 05:54:35 +0000 (14:54 +0900)
recorder.php

index 1368faf..aeaea82 100755 (executable)
@@ -76,7 +76,7 @@ function epgrec_childproc( $ppid )
        // 標準出力を読む
        $cpids = array();
        while( ! feof( $pipes[1] ) ) {
-               $line = fgets( $pipes[1] );
+               $line = trim(fgets( $pipes[1] ));
                $pids = preg_split( "/[\s]+/", $line );
                if( $pids[1] == $ppid ) {
                        array_push( $cpids, $pids[0] );