This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [!SA_SIGINFO] fix


Samuel Thibault wrote:
Hi,

Some systems (like GNU/Hurd) don't have SA_SIGINFO. Here is a patch.

Samuel


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


[libjava]/ChangeLog

2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>

	* java/lang/natPosixProcess.cc (sigchld_handler) [!SA_SIGINFO]: Remove
	'si' and 'third' parameters.  Disable calling
	pmi->old_sigaction.sa_sigaction.
	(java::lang::PosixProcess*ProcessManager::init) [!SA_SIGINFO]: Set
	sa.sa_handler instead of sa.sa_sigaction, don't set SA_SIGINFO flag.

Index: libjava/java/lang/natPosixProcess.cc
===================================================================
--- libjava/java/lang/natPosixProcess.cc	(révision 127274)
+++ libjava/java/lang/natPosixProcess.cc	(copie de travail)
@@ -110,7 +110,11 @@
 // sigwait() on SIGCHLD.  The information passed is ignored as it
 // will be recovered by the waitpid() call.
 static void
+#ifdef SA_SIGINFO
 sigchld_handler (int sig, siginfo_t *si, void *third)
+#else
+sigchld_handler (int sig)
+#endif
.
.
.
Should this be done with an autoconf check?

David Daney


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]