in reply to Re: Stuttering Children
in thread Stuttering Children

dave_the_m

Thanks for the suggestion, but I tried that and it doesn't seem to make a difference.

A colleague of mine discovered this bug report however it is listed for linux.

I'm still mining the web for help on this, any pointers appreciated.

Thanks

Craig

Replies are listed 'Best First'.
Re^3: Stuttering Children
by dave_the_m (Monsignor) on Sep 20, 2014 at 09:28 UTC
    Well you could completely avoid the issue by reading all of __DATA__ into a var before forking (assuming its a DATA issue)
      Yes, good suggestion. I believe this is what I will have to do.

      Does anybody know if this is a bug in Perl, or just a wonky Perl-OS interaction?

      Are there any other related things I need to worry about from the kids perspective when I exec?

        Well, DATA is just a buffered filehandle that has read the src file up to the __END__. Some of the file content beyond that point has been read into a buffer, some is still waiting to be read by the OS. When you fork, each process gets it's own copy of the buffer, but shares the filehandle for any remaing data. So you're bound to get odd effects.

        Dave.