> -----邮件原件-----
> 发件人: Cyril Hrubis [mailto:chru...@suse.cz]
> 发送时间: 2015年5月12日 17:13
> 收件人: Wei, Jiangang/魏 建刚
> 抄送: alexey.koda...@oracle.com; ltp-list@lists.sourceforge.net
> 主题: Re: [LTP] [PATCH 3/3] kernel/mem/mmapstress: fix resource leak
> 
> Hi!
> > There's no cleanup function for SAFE_CLOSE(). so,
> > close() is the same as SAFE_CLOSE(NULL, fd).
> 
> FYI, there is a difference between plain close() and
> SAFE_CLOSE(NULL, fd). The latter checks the return value
> from close(). Have a look at lib/safe_macros.c.
Yes,
Indeed, there's some difference between them.
Thanks for your kindness and reminder.

Thanks,
Wei
> 
> --
> Cyril Hrubis
> chru...@suse.cz
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to