Change sys-[nano]sleep to retry on signals