From: Julian Seward Date: Wed, 29 May 2002 23:30:28 +0000 (+0000) Subject: Fix stupid copy-n-paste bug in do_set_canceltype causing strange stack X-Git-Tag: svn/VALGRIND_1_0_3~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b2dbbe9406d8d3dfe0426cf9c44c8315530fd18;p=thirdparty%2Fvalgrind.git Fix stupid copy-n-paste bug in do_set_canceltype causing strange stack drift problems. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@338 --- diff --git a/coregrind/vg_scheduler.c b/coregrind/vg_scheduler.c index 3750398471..9db5021e69 100644 --- a/coregrind/vg_scheduler.c +++ b/coregrind/vg_scheduler.c @@ -1848,7 +1848,7 @@ void do__set_canceltype ( ThreadId tid, Int type ) VG_(threads)[tid].cancel_ty = False; } else if (type == PTHREAD_CANCEL_DEFERRED) { - VG_(threads)[tid].cancel_st = True; + VG_(threads)[tid].cancel_ty = True; } else { VG_(panic)("do__set_canceltype"); } diff --git a/vg_scheduler.c b/vg_scheduler.c index 3750398471..9db5021e69 100644 --- a/vg_scheduler.c +++ b/vg_scheduler.c @@ -1848,7 +1848,7 @@ void do__set_canceltype ( ThreadId tid, Int type ) VG_(threads)[tid].cancel_ty = False; } else if (type == PTHREAD_CANCEL_DEFERRED) { - VG_(threads)[tid].cancel_st = True; + VG_(threads)[tid].cancel_ty = True; } else { VG_(panic)("do__set_canceltype"); }