All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Urbanec <openembedded-devel@urbanec.net>
To: bitbake-devel@lists.openembedded.org
Subject: prserv is leaving -wal and -shm files behind
Date: Tue, 16 Jun 2015 17:16:11 +1000	[thread overview]
Message-ID: <557FCD3B.3010209@urbanec.net> (raw)

I noticed that prserv is now leaving behind -wal and -shm files. From my 
understanding, this is a symptom of not cleaning up connections to the 
database prior to shutdown.

I tried the following fix and it appears to help:

diff --git a/lib/prserv/serv.py b/lib/prserv/serv.py
index 0507485..f50a3fd 100644
--- a/lib/prserv/serv.py
+++ b/lib/prserv/serv.py
@@ -144,6 +144,7 @@ class PRServer(SimpleXMLRPCServer):
          self.table.sync()
          logger.info("PRServer: stopping...")
          self.server_close()
+        del self.db
          return

      def start(self):



                 reply	other threads:[~2015-06-16  7:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=557FCD3B.3010209@urbanec.net \
    --to=openembedded-devel@urbanec.net \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.