Share

CGIWrap

Tracker: Patches

5 "sigset" function missing on Linux - ID: 880539
Last Update: Settings changed ( nneul )

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 ))
{


BlackSun, Inc. ( blacksuninc ) - 2004-01-20 12:39

5

Closed

Accepted

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
cgiwrap-warnings.patch Download

Changes ( 4 )

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