summaryrefslogtreecommitdiff
path: root/rhnop-server/noprml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-03-30 15:55:16 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-03-30 15:55:16 (GMT)
commit3aca5caf2d9c7a587e3448cfc1b57cad6855aa91 (patch)
treeb89208774145702179f768ea1f00ed9108fdaf46 /rhnop-server/noprml
parent7807a34f747ac989108337a92138f7ade4e61ee4 (diff)
fixed mq.create vs mq.open bug
some cleanups
Diffstat (limited to 'rhnop-server/noprml')
-rwxr-xr-xrhnop-server/noprml7
1 files changed, 5 insertions, 2 deletions
diff --git a/rhnop-server/noprml b/rhnop-server/noprml
index 9c572b2..6065948 100755
--- a/rhnop-server/noprml
+++ b/rhnop-server/noprml
@@ -47,8 +47,11 @@ end
posix.umask("rwxrwxr-x")
local q, err = mq.create(queue_name, "wo", "rw-rw----")
if q == nil then
- io.stderr:write("creation of message queue failed: " .. err .. "\n")
- os.exit(1)
+ q, err = mq.open(queue_name, "wo")
+ if q == nil then
+ io.stderr:write("creation of message queue failed: " .. err .. "\n")
+ os.exit(1)
+ end
end
-- send out message to nopsyncd