http://qs321.pair.com?node_id=513102


in reply to Re: system() does not wait
in thread system() does not wait

I haven't been able to re-create with test code, and I cannot post production code, but $? >> 8 = 16777215 for SCRIPT1 while SCRIPT2 is still running.

Replies are listed 'Best First'.
Re^3: system() does not wait
by GrandFather (Saint) on Nov 30, 2005 at 20:58 UTC

    Start with your production code and delete a section at a time until you find the sensitive chunk, then focus on that. It is very unlikely that you require the full code for both scripts to reproduce the problem. ikegami's suggestion that you are in some fashion launching a shim that launches something else to do the real work then exits is the best answer so far without any further information, but doesn't sound likely in your case where you are launching another Perl script.

    At the very least post the three or four pertinent lines around the system call.


    DWIM is Perl's answer to Gödel