limit number of child processes in the script