Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YrqXL-0002GE-2c for ltp-list@lists.sourceforge.net; Mon, 11 May 2015 16:26:35 +0000 Date: Mon, 11 May 2015 18:25:57 +0200 From: Cyril Hrubis Message-ID: <20150511162557.GA22092@rei.suse.de> References: <554C57EF.6070603@cn.fujitsu.com> <1431073881-28951-1-git-send-email-weijg.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1431073881-28951-1-git-send-email-weijg.fnst@cn.fujitsu.com> Subject: Re: [LTP] [PATCH v3 2/5] kernel/syscalls/ipc/lib: rewrite getuserid List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: "Wei,Jiangang" Cc: ltp-list@lists.sourceforge.net 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. -- Cyril Hrubis chrubis@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