We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c9087 commit 77e396dCopy full SHA for 77e396d
1 file changed
library/std/src/sys/process/unix/unix.rs
@@ -510,8 +510,8 @@ impl Command {
510
support = SPAWN;
511
}
512
513
- Err(e) if matches!(e.raw_os_error(), Some(libc::EMFILE | libc::ENFILE)) => {
514
- // We're temporarily(?) out of file descriptors. In this case pidfd_spawnp would also fail
+ Err(e) if matches!(e.raw_os_error(), Some(libc::EMFILE | libc::ENFILE | libc::ENOMEM)) => {
+ // We're temporarily(?) out of file descriptors or memory. In this case pidfd_spawnp would also fail
515
// Don't update the support flag so we can probe again later.
516
return Err(e)
517
0 commit comments