httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject more solaris stuff
Date Mon, 28 Jul 1997 10:37:35 GMT
Ok, the test program below does essentially what apache does with the hup
patch.  That is:  socket, bind, dup. 

It runs just peachy keen on all the solaris boxes I have access to.  But
in particular, here is "showrev -a" from one of them:

Hostname: gossip
Hostid: 807ed90b
Release: 5.5.1
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.5.1 Generic 103640-03 September 1996

OpenWindows version:
OpenWindows Version 3.5.1   26 March 1996
Patch: 103663-01  Obsoletes:   Packages: SUNWcsu, SUNWhea
Patch: 103594-03  Obsoletes: , Requires:, 103663-01  Packages: SUNWcsu
Patch: 103630-01  Obsoletes:   Packages: SUNWcsu, SUNWcsr
Patch: 103680-01  Obsoletes: , Requires:, 103663-01  Packages: SUNWcsu
Patch: 103683-01  Obsoletes: , Requires:, 103663-01  Packages: SUNWcsu
Patch: 103817-01  Obsoletes:   Packages: SUNWcsu
Patch: 103582-01  Obsoletes:   Packages: SUNWcsr
Patch: 103640-01  Obsoletes:   Packages: SUNWcsr, SUNWcar
Patch: 103640-03  Obsoletes: 103658-02, Requires:, Incompatibles:  Packages: SUNWcsr, SUNWcar
Patch: 103558-05  Obsoletes: , Requires:, Incompatibles:  Packages: SUNWadmap, SUNWadmc, SUNWsadml
Patch: 103743-01  Obsoletes: , Requires:, 103663-01  Packages: SUNWfns
Patch: 103686-01  Obsoletes: , Requires:, 103663-01  Packages: SUNWnisu

Marc does it work for you too?

I'm going to ask the submitters for their "showrev -a" output as well.

Dean

#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <signal.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>

void main (void)
{
    int i, s, t;
    struct sockaddr_in sa;

    sa.sin_family = AF_INET;
    sa.sin_addr.s_addr = htonl (INADDR_ANY);
    sa.sin_port = htons (2718);

    for (i = 0; i < 20; ++i) {
        printf ("i = %d\n", i);
	if ((s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
	    perror ("socket");
	    exit (1);
	}
	if (bind (s, (struct sockaddr *)&sa, sizeof (sa)) == -1) {
	    fprintf (stderr, "i = %d, bind: %s\n", i, strerror (errno));
	    exit (1);
	}
	if ((t = fcntl (s, F_DUPFD, 16)) == -1) {
	    perror ("dup");
	    exit (1);
	}
	close (s);
	close (t);
    }
    exit (0);
}


Mime
View raw message