Properly get workers pids when running on SunOS.