ne pas geler tout AlternC pour tous les users quand quelqu'un download un tarball
This commit is contained in:
parent
217c69c25f
commit
dc8e415f6c
|
@ -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);
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue