OSSP CVS Repository

ossp - Check-in [5273]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5273
Date: 2005-Oct-12 10:14:21 (local)
2005-Oct-12 08:14:21 (UTC)
User:rse
Branch:
Comment: Return an error if pth_kill() is called before pth_init().

Submitted by: Martin Kraemer <Martin.Kraemer@Fujitsu-Siemens.com>

Tickets:
Inspections:
Files:
ossp-pkg/pth/ChangeLog      1.639 -> 1.640     5 inserted, 0 deleted
ossp-pkg/pth/pth_lib.c      1.59 -> 1.60     2 inserted, 0 deleted

ossp-pkg/pth/ChangeLog 1.639 -> 1.640

--- ChangeLog    2005/10/05 08:54:31     1.639
+++ ChangeLog    2005/10/12 08:14:21     1.640
@@ -19,6 +19,11 @@
      / __/ | |_| |
   __|_____(_)___/_________________________________________________________
                   
+  Changes between 2.0.5 and 2.0.6 (05-Oct-2005 to xx-xxx-2005)
+
+   *) Return an error if pth_kill() is called before pth_init().
+      [Martin Kraemer <Martin.Kraemer@Fujitsu-Siemens.com>]
+
   Changes between 2.0.4 and 2.0.5 (18-Feb-2005 to 05-Oct-2005)
 
    *) Upgraded build environment to GNU libtool 1.5.20 and


ossp-pkg/pth/pth_lib.c 1.59 -> 1.60

--- pth_lib.c    2004/12/31 19:34:45     1.59
+++ pth_lib.c    2005/10/12 08:14:21     1.60
@@ -138,6 +138,8 @@
 /* kill the package internals */
 int pth_kill(void)
 {
+    if (!pth_initialized)
+        return pth_error(FALSE, EINVAL);
     if (pth_current != pth_main)
         return pth_error(FALSE, EPERM);
     pth_debug1("pth_kill: enter");

CVSTrac 2.0.1