[PATCH] [!SA_SIGINFO] fix
David Daney
ddaney@avtrex.com
Thu Aug 9 17:24:00 GMT 2007
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
More information about the Java-patches
mailing list