in reply to fork/threads: running after childrem

Most probably you'll want POSIX::exit vs just exit.