Mercurial > epgrec.yaz
comparison recorder.php @ 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 | f68f63465a41 |
comparison
equal
deleted
inserted
replaced
169:e379552d084c | 171:c729a68415eb |
---|---|
74 }while( $st['running'] ); | 74 }while( $st['running'] ); |
75 | 75 |
76 // 標準出力をèªã‚€ | 76 // 標準出力をèªã‚€ |
77 $cpids = array(); | 77 $cpids = array(); |
78 while( ! feof( $pipes[1] ) ) { | 78 while( ! feof( $pipes[1] ) ) { |
79 $line = fgets( $pipes[1] ); | 79 $line = trim(fgets( $pipes[1] )); |
80 $pids = preg_split( "/[\s]+/", $line ); | 80 $pids = preg_split( "/[\s]+/", $line ); |
81 if( $pids[1] == $ppid ) { | 81 if( $pids[1] == $ppid ) { |
82 array_push( $cpids, $pids[0] ); | 82 array_push( $cpids, $pids[0] ); |
83 } | 83 } |
84 } | 84 } |