Works for me under RH 5.2. I'm running MySQL 3.22.21:
for i in 1 2 3 4 5
do
./xxx
done
BEHAVIOR 1: One connection, threaded.
Attempting to connect (threaded).
Connected in thread 1025.
BEHAVIOR 2: Two connections, one unthreaded, one
threaded.
Attempting to connect (unthreaded).
Connected (unthreaded).
Attempting to connect (threaded).
Connected in thread 1025.
BEHAVIOR 3: Two connections, unthreaded.
Attempting to connect (unthreaded).
Connected (unthreaded).
First done.
Attempting to connect (unthreaded).
Connected (unthreaded).
Second done.
BEHAVIOR 4: Two connections, threaded.
Attempting to connect (threaded).
Connected in thread 1025.
First done.
Attempting to connect (threaded).
Connected in thread 2049.
Second done.
BEHAVIOR 5: Two connections, forked.
Attempting to connect (unthreaded).
Attempting to connect (unthreaded).
Connected (unthreaded).
First done.
Connected (unthreaded).
Second done.
--
Ed Carp, N7EKG - erc@stripped - 9403672744@stripped for URGENT
messages only!
Web: http://www.pobox.com/~erc
"Truth is a pathless land, and you cannot approach it by any path
whatsoever, by any religion, by any sect. Truth, being limitless,
unconditioned, unapproachable by any path whatsoever, cannot be organized;
nor should any organisation be formed to lead or to coerce people along any
particular path." --J. Krishnamurti