Comment 10 for bug 1845005

Revision history for this message
Colin Ian King (colin-king) wrote :

Exits with the correct error code now:

bionic-arhhf$ stress-ng --rmap 10 -t 5
stress-ng: info: [7937] dispatching hogs: 10 rmap
stress-ng: info: [7937] cache allocate: using built-in defaults as unable to determine cache details
stress-ng: fail: [7939] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7940] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7938] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7943] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7941] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7944] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7942] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7946] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: error: [7937] process [7938] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7939] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7940] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7941] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7942] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7943] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7944] (stress-ng-rmap) aborted early, out of system resources
stress-ng: fail: [7945] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: fail: [7947] stress-ng-rmap: fallocate failed, errno=27 (File too large)
stress-ng: error: [7937] process [7945] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7946] (stress-ng-rmap) aborted early, out of system resources
stress-ng: error: [7937] process [7947] (stress-ng-rmap) aborted early, out of system resources
stress-ng: info: [7937] successful run completed in 0.07s
bionic-arhhf$ echo $?
3

3 = EXIT_NO_RESOURCE