stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r449845 - /incubator/stdcxx/trunk/util/exec.cpp
Date Mon, 25 Sep 2006 22:52:16 GMT
Author: sebor
Date: Mon Sep 25 15:52:15 2006
New Revision: 449845

URL: http://svn.apache.org/viewvc?view=rev&rev=449845
Log:
2006-09-25  Martin Sebor  <sebor@roguewave.com>

	* exec.cpp (wait_for_child): Used memcpy to assign function
	pointers as a workaround for HP aCC 6 bug (STDCXX-291).

Modified:
    incubator/stdcxx/trunk/util/exec.cpp

Modified: incubator/stdcxx/trunk/util/exec.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/exec.cpp?view=diff&rev=449845&r1=449844&r2=449845
==============================================================================
--- incubator/stdcxx/trunk/util/exec.cpp (original)
+++ incubator/stdcxx/trunk/util/exec.cpp Mon Sep 25 15:52:15 2006
@@ -435,7 +435,12 @@
        to linux glitch
     */
     memset (&act, 0, sizeof act);
-    act.sa_handler = handle_alrm;
+
+    /* avoid extern "C"/"C++" mismatch due to an HP aCC 6 bug
+       (see STDCXX-291)
+    */
+    memcpy (act.sa_handler, handle_alrm, sizeof act.sa_handler);
+
     sigaction (SIGALRM, &act, 0);
     
     if (timeout > 0)



Mime
View raw message