From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/211 Path: news.gmane.org!not-for-mail From: Vasiliy Kulikov Newsgroups: gmane.linux.lib.musl.general Subject: Re: close(2) failure cases (was: some fixes to musl) Date: Mon, 25 Jul 2011 21:36:32 +0400 Message-ID: <20110725173632.GA4462@albatros> References: <20110721170255.GA7352@albatros> <20110721182101.GB132@brightrain.aerifal.cx> <20110724091918.GA6076@albatros> <20110724122402.GH132@brightrain.aerifal.cx> <20110724174901.GA3219@albatros> <20110724222926.GN132@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1311615456 27519 80.91.229.12 (25 Jul 2011 17:37:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jul 2011 17:37:36 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-295-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 25 19:37:33 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1QlP5u-0006yK-KO for gllmg-musl@lo.gmane.org; Mon, 25 Jul 2011 19:37:30 +0200 Original-Received: (qmail 1593 invoked by uid 550); 25 Jul 2011 17:37:24 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 1585 invoked from network); 25 Jul 2011 17:37:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=uJ5zBeXDD+CJ4RxzvJO9qW8h18OAx5IyLNAO6wcsE2Q=; b=iiMKTTmGZ8abwGlXpcqg3TiYJsxJmG8nyyJRVcM4Kkbhm7gi6RE6KnUCqp2m9/zJLB aqhfCvXfudSEZ7Q4ghvSVDnwbZYCvJQrDGjo+Yrq45D5J/EfAOvPgeergIM6Oyv67jJw x+WlJvso+oyltApCLCJSMyub2kB0uvJeEF3zA= Original-Sender: Vasiliy Kulikov Content-Disposition: inline In-Reply-To: <20110724222926.GN132@brightrain.aerifal.cx> User-Agent: Mutt/1.5.20 (2009-06-14) Xref: news.gmane.org gmane.linux.lib.musl.general:211 Archived-At: Rich, On Sun, Jul 24, 2011 at 18:29 -0400, Rich Felker wrote: > Do you know any reliable way to setup the kernel to block/sleep for a > measurable length of time on close() so that I could test this? The easiest way is patching sys_close() ;-) But as you likely need a test reproducable on all kernel versions, you should use some FS that blocks/loops in either fops->flush() or fops->release(). The easiest way should be FUSE and a custom FUSE module where you just call sleep() inside of ->release(). Thanks, -- Vasiliy