On 25 Apr 2005, at 20:18, Sidney Markowitz wrote:
Matt Sergeant wrote:May be a problem with forking. Here's part of the fork replacement I use
in my code that uses the single-packet-DNS stuff:
Justin's code generates a number from the pid to initialize the ID counter and keeps track of it itself instead of relying on the Net::DNS code.
I didn't think you could do that because in newer versions of Net::DNS the id is a lexical variable. The only way to reinitialise it is to reload the module.
(admittedly I haven't read Justin's code yet, my bad).
Are there some systems in which fork does not result in a new pid?
Not ones that matter :-)
Matt.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
