diff recorder.php @ 161:84220382fea8

mod: ?????????????????????????????
author epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
date Sun, 04 Apr 2010 17:10:17 +0900
parents 4099ae0393eb
children b3095425e613
line wrap: on
line diff
--- a/recorder.php	Tue Mar 30 19:00:39 2010 +0900
+++ b/recorder.php	Sun Apr 04 17:10:17 2010 +0900
@@ -14,6 +14,11 @@
 	define( "RECORDER_CMD", INSTALL_PATH . "/recorder.php" );
 }
 
+$settings = Settings::factory();
+$reserve_id = $argv[1];
+$msgh_r = null;		// 受信用メッセージハンドラ
+$msgh_w = null;		// 送信用メッセージハンドラ
+
 
 // ノンブロッキングメッセージ受信
 
@@ -54,7 +59,7 @@
 function epgrec_childproc( $p )
 {
 	$st = proc_get_status( $p );
-	$cpids = epgrec_childproc( $st['pid'] );
+	$ppid = $st['pid'];
 	
 	// ps を実行する
 	$d = array(
@@ -104,10 +109,6 @@
 
 ////// ここから本編
 
-$settings = Settings::factory();
-$reserve_id = $argv[1];
-$msgh_r = null;		// 受信用メッセージハンドラ
-$msgh_w = null;		// 送信用メッセージハンドラ
 
 // メッセージハンドラを得る
 $ipc_key = ftok( RECORDER_CMD, "R" );
@@ -171,6 +172,7 @@
 						else {
 							epgrec_send_message("success");
 							reclog("recorder:: 録画ID".$rrec->id .":".$rrec->type.$rrec->channel.$rrec->title."の録画が中断された" );
+							$rec_cont = false;
 						}
 						break;