On 05/12/2015 12:25 AM, Cyril Hrubis wrote:
> Hi!
>> * No need to allocate memory for getpwnam()'s return,
>>   So remove these codes.
>>
>> * replace getpwnam() with getpwnam_r() that is thread-safe.
> 
> Hmm, is this code actually called from a testcase that runs in several
> threads? Otherwise it looks like overly complicated solution for problem
> that does not exist.

Yeah, this is what I considered before, so I'm not sure and like to
ask your points.

Thanks,
Wanlong Gao

> 


------------------------------------------------------------------------------
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