You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Richard Lloyd <rk...@connect.org.uk> on 1998/07/15 16:13:20 UTC

general/2625: select() used directly instead of ap_select() in src/support/ab.c

>Number:         2625
>Category:       general
>Synopsis:       select() used directly instead of ap_select() in src/support/ab.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Jul 15 07:20:01 PDT 1998
>Last-Modified:
>Originator:     rkl@connect.org.uk
>Organization:
apache
>Release:        1.3.0
>Environment:
HP-UX 9.05 (Series 700 machine)
using HP's ANSI C compiler
>Description:
src/support/ab.c generates compiler warnings with HP's ANSI C under HP-UX 9.05
because select() has been used directly instead of ap_select() (picked up
from conf.h).
>How-To-Repeat:
Need a system where (int *) is used for 2nd/3rd/4th params to select(), rather
than (fdset *). HP-UX 9.X with HP's ANSI C compiler is one such combination.
Note that HP-UX 10.X has reverted to (fdset *) :-)
>Fix:
Change line 554 of src/support/ab.c to:

        n = ap_select(256, &sel_read, &sel_write, &sel_except, &timeout);

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]