changeset 172:2a944f0c15c5

merged from upstream
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 30 Apr 2010 12:21:17 +0900
parents 1c4558d1a449 (current diff) c729a68415eb (diff)
children 78ea97c5ad24
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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] );