aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/mac_updater
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/mac_updater
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
Diffstat (limited to 'linden/indra/mac_updater')
-rw-r--r--linden/indra/mac_updater/mac_updater.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/linden/indra/mac_updater/mac_updater.cpp b/linden/indra/mac_updater/mac_updater.cpp
index a30f024..659fbf4a 100644
--- a/linden/indra/mac_updater/mac_updater.cpp
+++ b/linden/indra/mac_updater/mac_updater.cpp
@@ -991,10 +991,12 @@ void *updatethreadproc(void*)
991 if(len < sizeof(temp)-1) 991 if(len < sizeof(temp)-1)
992 { 992 {
993 // End of file or error. 993 // End of file or error.
994 if(pclose(mounter) != 0) 994 int result = pclose(mounter);
995 if(result != 0)
995 { 996 {
996 llinfos << "Failed to mount disk image, exiting."<< llendl; 997 // NOTE: We used to abort here, but pclose() started returning
997 throw 0; 998 // -1, possibly when the size of the DMG passed a certain point
999 llinfos << "Unexpected result closing pipe: " << result << llendl;
998 } 1000 }
999 mounter = NULL; 1001 mounter = NULL;
1000 } 1002 }
@@ -1020,6 +1022,7 @@ void *updatethreadproc(void*)
1020 else 1022 else
1021 { 1023 {
1022 llinfos << "Disk image device node not found!" << llendl; 1024 llinfos << "Disk image device node not found!" << llendl;
1025 throw 0;
1023 } 1026 }
1024 1027
1025 // Get an FSRef to the new application on the disk image 1028 // Get an FSRef to the new application on the disk image