[interchange-cvs] interchange - heins modified lib/Vend/Server.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Sun Jun 6 23:08:08 EDT 2004


User:      heins
Date:      2004-06-07 03:08:08 GMT
Modified:  lib/Vend Server.pm
Log:
* Initial instances of pre-forked servers could start out with the
  same rand value, causing their first session number to be identical
  (along with possible other side-effects).

  This probably didn't cause many problems in practice, but it is
  a bug.

Revision  Changes    Path
2.53      +3 -2      interchange/lib/Vend/Server.pm


rev 2.53, prev_rev 2.52
Index: Server.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Server.pm,v
retrieving revision 2.52
retrieving revision 2.53
diff -u -r2.52 -r2.53
--- Server.pm	30 Apr 2004 20:09:39 -0000	2.52
+++ Server.pm	7 Jun 2004 03:08:08 -0000	2.53
@@ -1,6 +1,6 @@
 # Vend::Server - Listen for Interchange CGI requests as a background server
 #
-# $Id: Server.pm,v 2.52 2004/04/30 20:09:39 mheins Exp $
+# $Id: Server.pm,v 2.53 2004/06/07 03:08:08 mheins Exp $
 #
 # Copyright (C) 2002-2003 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -26,7 +26,7 @@
 package Vend::Server;
 
 use vars qw($VERSION);
-$VERSION = substr(q$Revision: 2.52 $, 10);
+$VERSION = substr(q$Revision: 2.53 $, 10);
 
 use POSIX qw(setsid strftime);
 use Vend::Util;
@@ -1516,6 +1516,7 @@
 				send_ipc("register page $$");
 
 				my $next;
+				srand();
 				$::Instance = {};
 
 				reset_per_fork();








More information about the interchange-cvs mailing list