Mercurial > epgrec.yaz
diff recorder.php @ 172:2a944f0c15c5
merged from upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 30 Apr 2010 12:21:17 +0900 |
parents | c729a68415eb |
children | f68f63465a41 |
line wrap: on
line diff
--- a/recorder.php Sun Apr 18 22:48:48 2010 +0900 +++ b/recorder.php Fri Apr 30 12:21:17 2010 +0900 @@ -76,7 +76,7 @@ // 標準出力を読む $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] );