Mercurial > epgrec.yaz
diff getepg.php @ 142:481e789605e3
mod: EPG???????????????????????????????
| author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
|---|---|
| date | Sun, 21 Mar 2010 16:42:58 +0900 |
| parents | 3bed74eca373 |
| children | 4afd353b4507 784e3c82926e |
line wrap: on
line diff
--- a/getepg.php Sun Mar 21 00:00:58 2010 +0900 +++ b/getepg.php Sun Mar 21 16:42:58 2010 +0900 @@ -8,6 +8,7 @@ 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" ); @@ -30,7 +31,12 @@ // 並列化が可能か執念深く調べる $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();
