Patch against 1.2.2.

"Bill Abt" <[email protected]> Mon, 6 May 2002 21:08:44 -0400
Newsgroups gmane.linux.ngpt.user
Message-ID <[email protected]>
We've found on problem in 1.2.2 as released.  A patch was generated and is
enclosed as part of this email as well as being available on the NGPT
website.

vvvvvvv start copy here
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
diff -Naur ngpt-1.2.2/ChangeLog ngpt-new/ChangeLog
--- ngpt-1.2.2/ChangeLog      Fri May  3 22:59:28 2002
+++ ngpt-new/ChangeLog  Mon May  6 20:11:12 2002
@@ -14,6 +14,10 @@
   __|_(_)_____|___________________________________________________________

   Changes between 1.2.1 and 1.2.2
+
+   *) pth_native.c:
+     Only set the current native_descr to NULL if the slot is not 0.
+      [Bill Abt, <[email protected]>, Saurabh Desai, <[email protected]>]

    *) pth_native.c:
      During pth_cleanup_native(), there can be no thread running currently
diff -Naur ngpt-1.2.2/README ngpt-new/README
--- ngpt-1.2.2/README   Fri May  3 23:00:01 2002
+++ ngpt-new/README     Mon May  6 20:11:29 2002
@@ -1,5 +1,5 @@
   NGPT - Next Generation POSIX Threading
-  Version 1.2.2 (03-May-2002)
+  Version 1.2.2 (06-May-2002)

   ABSTRACT

diff -Naur ngpt-1.2.2/pth_native.c ngpt-new/pth_native.c
--- ngpt-1.2.2/pth_native.c   Fri May  3 22:55:59 2002
+++ ngpt-new/pth_native.c     Mon May  6 20:10:05 2002
@@ -396,7 +396,7 @@
      close(pth_native_list[slot].sigpipe[1]);

      /* At this point nothing can be current, clear it out... */
-     descr->current = NULL;
+     if (descr->sched_index != 0) descr->current = NULL;

      /* Clean up the scheduler */
      pth_tcb_free(pth_native_list[slot].sched);
diff -Naur ngpt-1.2.2/pth_vers.c ngpt-new/pth_vers.c
--- ngpt-1.2.2/pth_vers.c     Fri May  3 23:03:44 2002
+++ ngpt-new/pth_vers.c Mon May  6 20:13:10 2002
@@ -34,12 +34,12 @@
 pth_internal_version_t pth_internal_version = {
     0x102202,
     "1.2.2",
-    "1.2.2 (03-May-2002)",
-    "This is Next Generation POSIX Threading, Version 1.2.2
(03-May-2002)",
-    "Next Generation POSIX Threading 1.2.2 (03-May-2002)",
+    "1.2.2 (06-May-2002)",
+    "This is Next Generation POSIX Threading, Version 1.2.2
(06-May-2002)",
+    "Next Generation POSIX Threading 1.2.2 (06-May-2002)",
     "Next Generation POSIX Threading/1.2.2",
-    "@(#)Next Generation POSIX Threading 1.2.2 (03-May-2002)",
-    "$Id: pth_vers.c,v 1.65 2002/05/04 03:03:44 billa Exp $"
+    "@(#)Next Generation POSIX Threading 1.2.2 (06-May-2002)",
+    "$Id: pth_vers.c,v 1.66 2002/05/07 00:13:10 billa Exp $"
 };

 #endif /* _PTH_VERS_C_AS_HEADER_ */
^^^^^^^^ end copy here
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If you have any questions please feel free to post to mailing list and
we'll get back to you ASAP.

Regards,
     Bill Abt
     Senior Software Engineer
     Next Generation POSIX Threading for Linux
     IBM Cambridge, MA, USA 02142
     Ext: +(00)1 603-673-3440 or +(00)1 617-693-1591
     T/L: 253-9938 (Normal)
     T/L: 693-1591 (Backup)
     Cell: +(00)1 617-803-7514
     [email protected] or [email protected]
     http://oss.software.ibm.com/developerworks/opensource/pthreads