* [PATCH] Fix tst-cancel2{0,1}
@ 2004-03-09 21:55 Jakub Jelinek
2004-03-10 6:06 ` Ulrich Drepper
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2004-03-09 21:55 UTC (permalink / raw)
To: Ulrich Drepper; +Cc: Glibc hackers
Hi!
in_sh_body needs to be cleared before each round, otherwise a thread
could be cancelled in the second and following runs even if the needed
pthread_cleanup_push'es have not been done.
2004-03-09 Jakub Jelinek <jakub@redhat.com>
* tst-cancel20.c (do_one_test): Clear in_sh_body first.
* tst-cancel21.c (do_one_test): Likewise.
Reported by Gordon Jin <gordon.jin@intel.com>.
--- libc/nptl/tst-cancel21.c.jj 2003-12-19 02:31:58.000000000 +0100
+++ libc/nptl/tst-cancel21.c 2004-03-09 22:26:46.340191561 +0100
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
@@ -162,7 +162,10 @@ tf (void *arg)
static int
do_one_test (void)
{
- pid_t pid = fork ();
+ pid_t pid;
+
+ in_sh_body = 0;
+ pid = fork ();
if (pid == -1)
{
--- libc/nptl/tst-cancel20.c.jj 2003-12-19 02:31:18.000000000 +0100
+++ libc/nptl/tst-cancel20.c 2004-03-09 22:25:33.354230168 +0100
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
@@ -105,6 +105,7 @@ tf (void *arg)
static int
do_one_test (void)
{
+ in_sh_body = 0;
cleanups = 0;
if (pipe (fd) != 0 || pipe (fd + 2) != 0)
{
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix tst-cancel2{0,1}
2004-03-09 21:55 [PATCH] Fix tst-cancel2{0,1} Jakub Jelinek
@ 2004-03-10 6:06 ` Ulrich Drepper
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2004-03-10 6:06 UTC (permalink / raw)
To: Jakub Jelinek; +Cc: Glibc hackers
Applied.
--
⧠Ulrich Drepper ⧠Red Hat, Inc. ⧠444 Castro St ⧠Mountain View, CA â
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-10 6:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 21:55 [PATCH] Fix tst-cancel2{0,1} Jakub Jelinek
2004-03-10 6:06 ` Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).