gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Bastiaan Jacques
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1701-g3dad91a
Date: Mon, 05 Aug 2013 08:47:23 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  3dad91a5e2d387cacbe00199bf69b3ca70646725 (commit)
      from  3b441733acb9a0f0b21ab07ca01bf3548d40d9ac (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=3dad91a5e2d387cacbe00199bf69b3ca70646725


commit 3dad91a5e2d387cacbe00199bf69b3ca70646725
Author: Bastiaan Jacques <address@hidden>
Date:   Mon Aug 5 10:46:12 2013 +0200

    Make logging a bit more verbose in an attempt to debug #39695.

diff --git a/libbase/SharedMem.cpp b/libbase/SharedMem.cpp
index 303dc63..8fecb39 100644
--- a/libbase/SharedMem.cpp
+++ b/libbase/SharedMem.cpp
@@ -163,10 +163,16 @@ SharedMem::attach()
     // anyway for fun.
     const int semval = ::semctl(_semid, 0, GETVAL, s);
 
-    if (semval != 1) {
-        log_error(_("Need semaphore value of 1 for locking. Cannot attach 
shared memory!"));
-        return false;
-    }
+    switch(semval) {
+        case 1: // the value we want
+            break;
+        case -1:
+            log_error(_("semctl() failed: %1%"), strerror(errno));
+        default:
+            log_error(_("Need semaphore value of 1 for locking; obtained %1%."
+                        "Cannot attach shared memory!"), semval);
+            return false;
+    };
 
     Lock lock(*this);
 

-----------------------------------------------------------------------

Summary of changes:
 libbase/SharedMem.cpp |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]