Menu

#1 pgConn destruct fails to unregister chan

open
nobody
None
5
2001-05-28
2001-05-28
Don Porter
No

An interactice tclsh session:

% package require tclpq
1.0
% set db [pgConnection #auto dbname=test]
socket: sock3
pgConnection0
% delete object $db
% set db [pgConnection #auto dbname=test]
Tcl_RegisterChannel: duplicate channel names
Abort (core dumped)

Looks to me like the destructor of the
pgConnection object is failing to unregister
the Tcl channel when PQfinish closes the socket.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.