diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2014-02-21 04:46:49 +0000 |
---|---|---|
committer | <> | 2014-08-04 21:38:17 +0000 |
commit | f3765db04b903b3671733e07cf1541a51966dd14 (patch) | |
tree | defcc3c47d9b8bd78b97dcc04ee779a758d37b1c /demo2/cleanup.py | |
download | posix-ipc-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_python-packages_posix-ipc-tarball/posix_ipc-0.9.8.tar.gz.HEADposix_ipc-0.9.8master
Diffstat (limited to 'demo2/cleanup.py')
-rwxr-xr-x | demo2/cleanup.py | 15 |
1 files changed, 15 insertions, 0 deletions
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!") |