Seems like the sigset function is undefined on RH Linux,
even if configure seems to think that it's available.
I used "env ac_cv_func_sigset=no ./configure"
and the following patch (which should be equivalent?)
Preferrably the configure script should be fixed,
and HAS_SIGACTION added to the code below too.
--- cgiwrap-3.9.orig/util.c Tue Dec 23 15:59:26 2003
+++ cgiwrap-3.9/util.c Tue Jan 20 11:05:13 2004
@@ -968,6 +973,12 @@
#if defined(SIGXCPU) && defined(HAS_SIGSET)
DEBUG_Msg("Setting SIGXCPU to default
behaviour\n");
sigset(SIGXCPU, SIG_DFL);
+#elif defined(SIGXCPU)
+ struct sigaction default_action;
+ default_action.sa_handler = SIG_DFL;
+ default_action.sa_flags = 0;
+ DEBUG_Msg("Setting SIGXCPU to default
behaviour\n");
+ sigaction(SIGXCPU, &default_action, NULL);
#endif
}
Also added another patch to the same file to make -Wall
run:
@@ -390,7 +395,7 @@
int found = 0;
DEBUG_Msg("Checking user shell.");
- while ( sh = getusershell() )
+ while ( (sh = getusershell()) )
{
if (0 == strcmp( sh, user->pw_shell ))
{
Nobody/Anonymous
None
None
Public
| Filename | Description | Download |
|---|---|---|
| cgiwrap-warnings.patch | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2007-01-24 17:02 | nneul |
| resolution_id | None | 2007-01-24 17:02 | nneul |
| close_date | - | 2007-01-24 17:02 | nneul |
| File Added | 74126: cgiwrap-warnings.patch | 2004-01-20 12:45 | blacksuninc |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use