In the last episode (Jan 15), Justin Lundy said:
> When I open over nine connections to mysql I see vi.recover in my show
> databases output. The existing connections stay open and continue to
> operate. No new database connections can be made at this point. I should
> be seeing the mysql, phpdig and test databases when performing the query
> but I only see vi.recover? Any ideas why this happens or how to prevent it?
> [jbl@subterrain jbl]$ uname -a
> NetBSD subterrain.net 2.0 NetBSD 2.0 (SUBTERRAIN) #1: Tue Dec 28 22:34:54 EST 2004
On FreeBSD, this was due to realpath not being thread-safe. It called
chdir() internally and didn't prevent other threads from calling
chdir() or getcwd() at the same time. NetBSD's realpath looks almost
identical to the old FreeBSD code, so it should be easy to fix by just
merging the fix from FreeBSD.
The FreeBSD fix is in rev 1.14.