Odd behaviour: with vs without child processes