On 05/26/2016 10:11 PM, Christopher Larson wrote:


On Thu, May 26, 2016 at 12:44 PM, Ming Liu <[email protected] <mailto:[email protected]>> wrote:

    From: Ming Liu <[email protected]
    <mailto:[email protected]>>

    To avoid reporting errors when swapoff does not exist.

    Signed-off-by: Ming Liu <[email protected]
    <mailto:[email protected]>>


This will suppress *real* errors as well. Better to just check if swapoff exists and then run it if it does, if that's a concern.
Yes, checking if it exists makes more sense. And swapon is being used with 2> /dev/null as well in some places, better to change them also. I will send a V1 soon.

//Ming Liu
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to