# There are one or more update processes that listen for status updates
# from client programs.
-# $Id: spong-server.pl,v 1.48 2002/01/11 19:28:44 sljohnson Exp $
+# $Id: spong-server.pl,v 1.49 2002/03/22 16:46:56 sljohnson Exp $
use lib "@@LIBDIR@@";
};
# Set up the socket to listen to
- $sock = IO::Socket::INET->new( Listen => SOMAXCONN,
+ $sock = IO::Socket::INET->new( Listen => 1024,
LocalPort => $main::SPONG_CLIENT_PORT,
Proto => 'tcp',
Timeout => 30,
# Set up the socket to listen to
my( $sock, $client );
- $sock = IO::Socket::INET->new( Listen => SOMAXCONN,
+ $sock = IO::Socket::INET->new( Listen => 1024,
LocalPort => $main::SPONG_UPDATE_PORT,
Proto => 'tcp',
Timeout => 30,
# Set up the socket to listen to
my( $sock, $client );
- $sock = IO::Socket::INET->new( Listen => SOMAXCONN,
+ $sock = IO::Socket::INET->new( Listen => 1024,
LocalPort => $main::SPONG_BB_UPDATE_PORT,
Proto => 'tcp',
Timeout => 30,
# Set up the socket to listen to
my( $localTimeOut ) = 15 ;
my( $sock, $client );
- $sock = IO::Socket::INET->new( Listen => SOMAXCONN,
+ $sock = IO::Socket::INET->new( Listen => 1024,
LocalPort => $main::SPONG_QUERY_PORT,
Proto => 'tcp',
Timeout => 30,
sub reaper {
my $kid;
- $kid = wait();
- $main::numchild--;
- &debug("reaped kid $kid, # of child = $main::numchild");
+# $kid = wait();
+# $main::numchild--;
+# &debug("reaped kid $kid, # of child = $main::numchild");
-# while( ($kid = waitpid(-1,&WNOHANG)) > 0 ) {
-# $main::numchild--;
-# &debug("reaped kid $kid, # of child = $main::numchild");
-# }
+ while( ($kid = waitpid(-1,&WNOHANG)) > 0 ) {
+ $main::numchild--;
+ &debug("reaped kid $kid");
+ }
# Reinstate signal handler in cae system uses sysV libs
$SIG{'CHLD'} = \&reaper;