Skip Menu |

This queue is for tickets about the FCGI-ProcManager CPAN distribution.

Report information
The Basics
Id: 88337
Status: resolved
Priority: 0/
Queue: FCGI-ProcManager

People
Owner: Nobody in particular
Requestors: skaurus [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.24
Fixed in: 0.25



Subject: Probably FCGI::ProcManager should call srand after forking child
http://perldoc.perl.org/functions/srand.html "Another case is that you may want to call srand() after a fork() to avoid child processes sharing the same seed value as the parent (and consequently each other)." Otherwise when FCGI::ProcManager spawns few childs one after another they all will have the same seed. One possible solution is to add the srand call to the handling_init subroutine.
On Mon Sep 02 06:16:39 2013, skaurus wrote: Show quoted text
> http://perldoc.perl.org/functions/srand.html > "Another case is that you may want to call srand() after a fork() to > avoid child processes sharing the same seed value as the parent (and > consequently each other)." > > Otherwise when FCGI::ProcManager spawns few childs one after another > they all will have the same seed. > > One possible solution is to add the srand call to the handling_init > subroutine.
This came up in #catalyst today. Starman does it, and mst and I think it's a good idea too. I pushed a branch 'srand' to catagits that adds the call. Please consider merging and releasing it.
Subject: Re: [rt.cpan.org #88337] Probably FCGI::ProcManager should call srand after forking child
Date: Fri, 21 Nov 2014 08:41:55 +0000
To: bug-FCGI-ProcManager [...] rt.cpan.org
From: Gareth Kirwan <gbjk [...] thermeon.com>
On 21/11/2014 03:04, Andrew Rodland via RT wrote: Show quoted text
> Queue: FCGI-ProcManager > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=88337 > > > This came up in #catalyst today. Starman does it, and mst and I think it's a good idea too. I pushed a branch 'srand' to catagits that adds the call. Please consider merging and releasing it. > >
Andrew, You've now got comaint, so you can do so yourself. Grab me on #catalyst if you need help with it at all.
Looks like this is in the latest release, so this ticket can be closed.
On Mon Feb 27 10:34:16 2017, BBYRD wrote: Show quoted text
> Looks like this is in the latest release, so this ticket can be closed.
Indeed, since 2014. Was probably waiting for the release to show up so I could mark it "fixed in", and waited a little too long :)