>> hence shoul be in an ifdef linux or something.

On the other hand the code is just "Does the proc file exist? No? Then
skip this." But yes it could be wrapped in #ifdef __linux__ sections.

> Or use setpriority() to make it portable.

I don't see how scheduler priority has much influence on OOM killing.

How do the BSDs do memory overcommit + kill on OOM?
-- 
ziggomatic
                                          

Reply via email to