Mercurial > epgrec.yaz
diff getepg.php @ 146:4afd353b4507
merged with upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 23 Mar 2010 02:37:31 +0900 |
parents | b3ba2658a228 481e789605e3 |
children | 43f74519bd52 |
line wrap: on
line diff
--- a/getepg.php Sun Mar 21 05:51:19 2010 +0900 +++ b/getepg.php Tue Mar 23 02:37:31 2010 +0900 @@ -8,7 +8,8 @@ include_once( INSTALL_PATH . '/Keyword.class.php' ); include_once( INSTALL_PATH . '/Settings.class.php' ); include_once( INSTALL_PATH . '/storeProgram.inc.php' ); - + include_once( INSTALL_PATH . '/recLog.inc.php' ); + // 後方互換性 if( ! defined( "BS_EPG_CHANNEL" ) ) define( "BS_EPG_CHANNEL", "211" ); if( ! defined( "CS1_EPG_CHANNEL" ) ) define( "CS1_EPG_CHANNEL", "CS8" ); @@ -30,8 +31,13 @@ // 並列化が可能か執念深く調べる $use_para = false; $use_para = (function_exists( "pcntl_fork" ) && function_exists( "posix_setsid" ) && function_exists( "pcntl_signal" ) && function_exists("pcntl_setpriority")); - - + if( ! $use_para ) { + reclog("getepg:: 並列実行が行えないPHP環境です" ); + } + else { + reclog("getepg:: 並列実行を使用します" ); + } + $settings = Settings::factory(); $temp_xml_bs = $settings->temp_xml."_bs";