summaryrefslogtreecommitdiff
path: root/py/demo/IceStorm/clock/Subscriber.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-03-01 13:12:23 +0000
committerDwayne Boone <dwayne@zeroc.com>2007-03-01 13:12:23 +0000
commit6799cc28d8c40559cfe84476ea7a89b25baaae39 (patch)
tree695b40a884ca8af0bb0b076e42d174574a89b1fa /py/demo/IceStorm/clock/Subscriber.py
parentFixed warning/error messages to be on a single line (diff)
downloadice-6799cc28d8c40559cfe84476ea7a89b25baaae39.tar.bz2
ice-6799cc28d8c40559cfe84476ea7a89b25baaae39.tar.xz
ice-6799cc28d8c40559cfe84476ea7a89b25baaae39.zip
Bug 1894 - fix return code
Diffstat (limited to 'py/demo/IceStorm/clock/Subscriber.py')
-rw-r--r--py/demo/IceStorm/clock/Subscriber.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/py/demo/IceStorm/clock/Subscriber.py b/py/demo/IceStorm/clock/Subscriber.py
index f6ca69635a7..6ff4faaf979 100644
--- a/py/demo/IceStorm/clock/Subscriber.py
+++ b/py/demo/IceStorm/clock/Subscriber.py
@@ -26,7 +26,7 @@ class Subscriber(Ice.Application):
opts, args = getopt.getopt(args[1:], '', ['datagram', 'twoway', 'oneway', 'ordered', 'batch'])
except getopt.GetoptError:
self.usage()
- return False
+ return 1
topicName = "time"
datagram = False
@@ -51,7 +51,7 @@ class Subscriber(Ice.Application):
if batch and (twoway or ordered):
print self.appName() + ": batch can only be set with oneway or datagram"
- return False
+ return 1
if optsSet > 1:
self.usage()
@@ -64,7 +64,7 @@ class Subscriber(Ice.Application):
self.communicator().propertyToProxy('IceStorm.TopicManager.Proxy'))
if not manager:
print args[0] + ": invalid proxy"
- return False
+ return 1
#
# Retrieve the topic.
@@ -76,7 +76,7 @@ class Subscriber(Ice.Application):
topic = manager.create(topicName)
except IceStorm.TopicExists, ex:
print self.appName() + ": temporary error. try again"
- return False
+ return 1
adapter = self.communicator().createObjectAdapter("Clock.Subscriber")
@@ -116,7 +116,7 @@ class Subscriber(Ice.Application):
#
topic.unsubscribe(subscriber)
- return True
+ return 0
app = Subscriber()
sys.exit(app.main(sys.argv, "config.sub"))