From: Michael Brown Date: Tue, 19 Jun 2001 21:28:02 +0000 (+0000) Subject: Reset the program name back to "spong-server (query)" after handling an X-Git-Tag: spong-2_4_6~22 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=473f82052a23435bc50d534c5cc69e2aa408369a;p=spong.git Reset the program name back to "spong-server (query)" after handling an incoming connection. Done so we don't get entries in the process table saying they're handling a connection from somebody when they really aren't. --- diff --git a/src/spong-server.pl b/src/spong-server.pl index ceade75..3c7a23b 100755 --- a/src/spong-server.pl +++ b/src/spong-server.pl @@ -6,7 +6,7 @@ # There are one or more update processes that listen for status updates # from client programs. -# $Id: spong-server.pl,v 1.42 2001/06/19 21:24:32 supermathie Exp $ +# $Id: spong-server.pl,v 1.43 2001/06/19 21:28:02 supermathie Exp $ use lib "@@LIBDIR@@"; @@ -419,6 +419,7 @@ sub listen_for_queries { &debug( "query server socket setup, listening for connections" ); while( 1 ) { + $0 = "spong-server (query)"; # Update the service list from the database every 15 minutes if ( time() >= $next_update ) { debug("Scanning for stale data to convert to purple status",5);