stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abl...@apache.org
Subject svn commit: r474550 - /incubator/stdcxx/trunk/util/exec.cpp
Date Mon, 13 Nov 2006 22:54:09 GMT
Author: ablack
Date: Mon Nov 13 14:54:09 2006
New Revision: 474550

URL: http://svn.apache.org/viewvc?view=rev&rev=474550
Log:
2006-11-13  Andrew Black  <ablack@roguewave.com>

	* exec.cpp (alarm_handler) [!_WIN32]: Define typedef with signature matching that of handle_alrm.
	(wait_for_child) [!_WIN32]: Use alarm_handler typedef for type of local variable storing
reference to handle_alrm.

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=474550&r1=474549&r2=474550
==============================================================================
--- incubator/stdcxx/trunk/util/exec.cpp (original)
+++ incubator/stdcxx/trunk/util/exec.cpp Mon Nov 13 14:54:09 2006
@@ -360,6 +360,8 @@
         alarm_timeout = 1;
 }
 
+typedef void (*alarm_handler)(int);
+
 #ifdef __cplusplus
 }
 #endif
@@ -421,7 +423,7 @@
     /* avoid extern "C"/"C++" mismatch due to an HP aCC 6 bug
        (see STDCXX-291)
     */
-    void (*phandler)(int) = handle_alrm;
+    alarm_handler phandler = handle_alrm;
     memcpy (&act.sa_handler, &phandler, sizeof act.sa_handler);
 
     sigaction (SIGALRM, &act, 0);



Mime
View raw message