Branch: Tag:

2016-02-27

2016-02-27 23:31:16 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Move real close into the destructor.

Also destruct the conxion object directly, to make sure that the
filedescriptors actually get closed.

1204:    termlock=(termthread=Thread.Mutex())->lock();    c->close();    termthread->lock(1); -  c=0; -  destruct(waitforauthready); +  destruct(c);destruct(waitforauthready);   }      protected void destroy() {
1262:    termlock=(termthread=Thread.Mutex())->lock();    c->close();    termthread->lock(1); -  c=0; +  destruct(c);    PD("Flushing old cache\n");    foreach(_prepareds;;mapping tp)    m_delete(tp,"preparedname");