You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@gonzo.ben.algroup.co.uk> on 1997/05/01 15:05:53 UTC
[PATCH] fix for QNX
Fix the problem with signal being redefined on QNX.
Commentary: I debated whether to make this a QNX only thing, but in the end it
seemed pointless to me.
Cheers,
Ben.
Index: conf.h
===================================================================
RCS file: /export/home/cvs/apache/src/conf.h,v
retrieving revision 1.95
diff -c -r1.95 conf.h
*** conf.h 1997/04/27 07:52:17 1.95
--- conf.h 1997/05/01 12:33:39
***************
*** 641,646 ****
--- 641,652 ----
#define SIG_ERR ((Sigfunc *)-1)
#endif
+ /*
+ * For some strange reason, QNX defines signal to signal. Eliminate it.
+ */
+ #ifdef signal
+ #undef signal
+ #endif
#define signal(s,f) ap_signal(s,f)
Sigfunc *signal(int signo, Sigfunc *func);
#endif
--
** Buy "Apache: The Definitive Guide" from http://www.links.org/apache **
Ben Laurie Phone: +44 (181) 994 6435 Email: ben@algroup.co.uk
Freelance Consultant and Fax: +44 (181) 994 6472
Technical Director URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd, Apache Group member (http://www.apache.org)
London, England. Apache-SSL author
Re: [PATCH] fix for QNX
Posted by Dean Gaudet <dg...@arctic.org>.
Like Ben said we use sigaction(). If that arch's sigaction() doesn't
work we'd probably know about it already (we've used sigaction() in
set_signals for a long time) and it'd have NO_USE_SIGACTION defined.
In that event we don't replace signal().
Dean
On Thu, 1 May 1997, Marc Slemko wrote:
> What if some system defines signal to myspecialsignalthatworks?
Re: [PATCH] fix for QNX
Posted by Marc Slemko <ma...@worldgate.com>.
What if some system defines signal to myspecialsignalthatworks?
I don't think that is overly likely, but if there is a real chance of it
causing problems we should change ours to ap_signal or something.
Probably isn't necessary, but if anyone has any reason to think of any
systems that may get messed up...
On Thu, 1 May 1997, Ben Laurie wrote:
> Fix the problem with signal being redefined on QNX.
>
> Commentary: I debated whether to make this a QNX only thing, but in the end it
> seemed pointless to me.
>
> Cheers,
>
> Ben.
>
> Index: conf.h
> ===================================================================
> RCS file: /export/home/cvs/apache/src/conf.h,v
> retrieving revision 1.95
> diff -c -r1.95 conf.h
> *** conf.h 1997/04/27 07:52:17 1.95
> --- conf.h 1997/05/01 12:33:39
> ***************
> *** 641,646 ****
> --- 641,652 ----
> #define SIG_ERR ((Sigfunc *)-1)
> #endif
>
> + /*
> + * For some strange reason, QNX defines signal to signal. Eliminate it.
> + */
> + #ifdef signal
> + #undef signal
> + #endif
> #define signal(s,f) ap_signal(s,f)
> Sigfunc *signal(int signo, Sigfunc *func);
> #endif
>
> --
> ** Buy "Apache: The Definitive Guide" from http://www.links.org/apache **
> Ben Laurie Phone: +44 (181) 994 6435 Email: ben@algroup.co.uk
> Freelance Consultant and Fax: +44 (181) 994 6472
> Technical Director URL: http://www.algroup.co.uk/Apache-SSL
> A.L. Digital Ltd, Apache Group member (http://www.apache.org)
> London, England. Apache-SSL author
>