]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
mysql_selector: reset mysql_lock to zero after destroying the lock.
authorAndre Noll <maan@systemlinux.org>
Sat, 7 Jul 2007 18:07:20 +0000 (20:07 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 7 Jul 2007 18:07:20 +0000 (20:07 +0200)
mysql_selector.c

index dedc96cc8ec6961bf118c78586bb3c5be037fb04..07cbfc65878bfc43ca4bb1fb90c4fa3a216b0536 100644 (file)
@@ -2270,6 +2270,7 @@ static void shutdown_connection(void)
                ret = mutex_destroy(mysql_lock);
                if (ret < 0)
                        PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
                ret = mutex_destroy(mysql_lock);
                if (ret < 0)
                        PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
+               mysql_lock = 0;
        }
 }
 
        }
 }