Openembedded Bitbake Development
 help / color / mirror / Atom feed
* prserv is leaving -wal and -shm files behind
@ 2015-06-16  7:16 Peter Urbanec
  0 siblings, 0 replies; only message in thread
From: Peter Urbanec @ 2015-06-16  7:16 UTC (permalink / raw)
  To: bitbake-devel

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):



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-16  7:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-16  7:16 prserv is leaving -wal and -shm files behind Peter Urbanec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox