ne pas geler tout AlternC pour tous les users quand quelqu'un download un tarball

This commit is contained in:
Antoine Beaupr�� 2013-09-09 22:16:32 +00:00
parent 217c69c25f
commit dc8e415f6c
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,9 @@ getFields($fields);
$p=$bro->GetPrefs();
// need to release the giant lock, otherwise those downloads will hang
// AlternC for all users!
alternc_shutdown();
switch ($p["downfmt"]) {
case 0:
$bro->DownloadTGZ($dir);

View File

@ -1041,6 +1041,9 @@ class m_bro {
}
$timestamp=date("H:i:s");
// relacher le lock global sinon ce download va geler alternc pour
// tout le monde
alternc_shutdown();
if(exec("/bin/tar cvf - ".getuserpath()."/ | gzip -9c > ".$dir."/".$mem->user['login']."_html_".$timestamp.".tar.gz")){
$err->log("bro","export_data_succes");
}else{