in reply to Stuttering Children

I can't remember the exact details; but IIRC on solaris the child needs to call POSIX::_exit() rather than exit() to stop shared file handles being messed up somehow.

Dave.

Replies are listed 'Best First'.
Re^2: Stuttering Children
by cmv (Chaplain) on Sep 20, 2014 at 01:23 UTC
    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

      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?