Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1QgJaZ-0005wA-Cj for ltp-list@lists.sourceforge.net; Mon, 11 Jul 2011 16:44:07 +0000 Date: Mon, 11 Jul 2011 18:45:27 +0200 From: Cyril Hrubis Message-ID: <20110711164527.GC31575@saboteur.suse.cz> References: <1309414787-2022-1-git-send-email-yanpai.chen@gmail.com> <1309414787-2022-7-git-send-email-yanpai.chen@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1309414787-2022-7-git-send-email-yanpai.chen@gmail.com> Subject: Re: [LTP] [PATCH 7/7] testcases: syscalls: close file descriptors before unlinking 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: Andrew Chen Cc: ltp-list@lists.sourceforge.net, ypchen@faraday-tech.com Hi! > Ensure file descriptors are closed before unlinking them, or we cannot > remove the generated directories after these tests. The leftover > directories may cause tests failed in latter runs once the directory > names are hit. I fail to see the problem here (which doesn't mean that there isn't any). If you do unlink() of file, it's removed from filesystem tree regardless if it's open or not. -- Cyril Hrubis chrubis@suse.cz ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list