From dc8e415f6ce82c95316deb78b451d7eca84505ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=EF=BF=BD=EF=BF=BD?= Date: Mon, 9 Sep 2013 22:16:32 +0000 Subject: [PATCH] ne pas geler tout AlternC pour tous les users quand quelqu'un download un tarball --- bureau/admin/bro_tgzdown.php | 3 +++ bureau/class/m_bro.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/bureau/admin/bro_tgzdown.php b/bureau/admin/bro_tgzdown.php index 5a0ce9fe..7f1a4ee8 100644 --- a/bureau/admin/bro_tgzdown.php +++ b/bureau/admin/bro_tgzdown.php @@ -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); diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index 2a6cd35e..0a545479 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -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{