3 ms·
IIRC, on Linux at least the memory allocation thing is moot. If your process runs out of memory, it dies anyway. You can't catch "malloc says no" because malloc
by JulianMorrison 16y ago
IIRC, on Linux at least the memory allocation thing is moot. If your process runs out of memory, it dies anyway. You can't catch "malloc says no" because malloc never says no. It either says yes or blows your process's brains out.
- imurray 16y ago"malloc never says no" malloc says no if you set a ulimit in your shell. I do this on the desktop to stop myself from shooting myself in the foot. (Recent kernels also let you turn off the overcommitting behavior.)
- adobriyan 16y agoRecent is 2.6.11+ which is 6 years old.
- koenigdavidmj 16y agoNote to self: do not leave root terminal behind xlock, since I have no guarantee that xlock will stay around.