From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 4 Apr 2007 06:38:46 -0700 From: William Lee Irwin III Subject: Re: missing madvise functionality Message-ID: <20070404133846.GL2986@holomorphy.com> References: <46128051.9000609@redhat.com> <46128CC2.9090809@redhat.com> <20070403172841.GB23689@one.firstfloor.org> <20070403125903.3e8577f4.akpm@linux-foundation.org> <4612B645.7030902@redhat.com> <20070403202937.GE355@devserv.devel.redhat.com> <20070404130918.GK2986@holomorphy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070404130918.GK2986@holomorphy.com> Sender: owner-linux-mm@kvack.org Return-Path: To: Jakub Jelinek Cc: Ulrich Drepper , Andrew Morton , Andi Kleen , Rik van Riel , Linux Kernel , linux-mm@kvack.org, Hugh Dickins List-ID: On Wed, Apr 04, 2007 at 06:09:18AM -0700, William Lee Irwin III wrote: > for (--i; i >= 0; --i) { > if (pthread_join(th[i], NULL)) { > perror("main: pthread_join failed"); > ret = EXIT_FAILURE; > } > } Obligatory brown paper bag patch: --- ./jakub.c.orig 2007-04-04 05:57:23.409493248 -0700 +++ ./jakub.c 2007-04-04 06:35:34.296043432 -0700 @@ -232,10 +232,14 @@ int main(int argc, char *argv[]) } } for (--i; i >= 0; --i) { - if (pthread_join(th[i], NULL)) { + void *status; + + if (pthread_join(th[i], &status)) { perror("main: pthread_join failed"); ret = EXIT_FAILURE; } + if (status != (void *)tr_success) + ret = EXIT_FAILURE; } free(th); getrusage(RUSAGE_SELF, &ru); -- wli -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org