From f3765db04b903b3671733e07cf1541a51966dd14 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Fri, 21 Feb 2014 04:46:49 +0000 Subject: Imported from /home/lorry/working-area/delta_python-packages_posix-ipc-tarball/posix_ipc-0.9.8.tar.gz. --- demo2/cleanup.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 demo2/cleanup.py (limited to 'demo2/cleanup.py') diff --git a/demo2/cleanup.py b/demo2/cleanup.py new file mode 100755 index 0000000..04e21e5 --- /dev/null +++ b/demo2/cleanup.py @@ -0,0 +1,15 @@ +import posix_ipc +import utils + +params = utils.read_params() + +try: + posix_ipc.unlink_message_queue(params["MESSAGE_QUEUE_NAME"]) + s = "message queue %s removed" % params["MESSAGE_QUEUE_NAME"] + print (s) +except: + print ("queue doesn't need cleanup") + + + +print ("\nAll clean!") -- cgit v1.2.1