summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/utils/syncdaemon/gsyncd.py
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-04-11 04:09:16 +0000
committerAnand Avati <avati@gluster.com>2011-04-11 03:52:28 -0700
commit2f38fdac226b5b5bd02a78e9933ec46b05cac32d (patch)
tree08253c1fc3bb32b40bd77b0a6559219559fd6105 /xlators/features/marker/utils/syncdaemon/gsyncd.py
parentdd3cc7d398c3b4432097b7cc2716e2afec9a8e47 (diff)
syncdaemon: minor fixes
- fix yet another instance of calling exit (instead of {sys.,os._}exit) - fix logging to stderr with "-" as logfile - whitespace fix Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 1570 (geosync related changes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/gsyncd.py')
-rw-r--r--xlators/features/marker/utils/syncdaemon/gsyncd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/gsyncd.py b/xlators/features/marker/utils/syncdaemon/gsyncd.py
index fb2fe522b..d759f6b8d 100644
--- a/xlators/features/marker/utils/syncdaemon/gsyncd.py
+++ b/xlators/features/marker/utils/syncdaemon/gsyncd.py
@@ -87,7 +87,7 @@ def startup(**kw):
if getattr(gconf, 'pid_file', None) and kw.get('go_daemon') != 'postconn':
if not grabpidfile():
sys.stderr.write("pidfile is taken, exiting.\n")
- exit(2)
+ sys.exit(2)
if kw.get('go_daemon') == 'should':
x, y = os.pipe()
@@ -178,7 +178,7 @@ def main_i():
rconf = {'go_daemon': 'should'}
def store_abs(opt, optstr, val, parser):
- if val:
+ if val and val != '-':
val = os.path.abspath(val)
setattr(parser.values, opt.dest, val)
def store_local(opt, optstr, val, parser):