OS-2533 spawn fails occasionally with EAGAIN