changeset 171:c729a68415eb

fix: preg_split¤Î¥Ý¥«¥ß¥¹¤ò½¤Àµ
author Sushi-k <epgrec@park.mda.or.jp>
date Mon, 26 Apr 2010 14:54:35 +0900
parents e379552d084c
children 2a944f0c15c5
files recorder.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/recorder.php	Sun Apr 18 18:06:39 2010 +0900
+++ b/recorder.php	Mon Apr 26 14:54:35 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] );