| 921 | #endif |
| 922 | |
| 923 | static void cbm_spawn_backoff(int attempt) { |
| 924 | long ms = 10L << (attempt < 6 ? attempt : 6); |
| 925 | struct timespec delay = {ms / 1000L, (ms % 1000L) * 1000L * 1000L}; |
| 926 | (void)cbm_nanosleep(&delay, NULL); |
| 927 | } |
| 928 | |
| 929 | /* fork() fails with EAGAIN under the same pressure posix_spawn does, and the |
| 930 | * fallback path must not be less robust than the primary one. */ |
no test coverage detected