Submitter | Siddharth Agarwal |
---|---|
Date | Oct. 2, 2013, 11:19 p.m. |
Message ID | <63a4ad5b170b08c5b1b3.1380755983@dev1091.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/2713/ |
State | Accepted |
Commit | 993b2448867994252aebdc0ed04e69572d57e811 |
Headers | show |
Comments
Patch
diff --git a/hgext/inotify/server.py b/hgext/inotify/server.py --- a/hgext/inotify/server.py +++ b/hgext/inotify/server.py @@ -451,7 +451,9 @@ runargs = util.hgcmd() + sys.argv[1:] pidfile = ui.config('inotify', 'pidfile') - if opts['daemon'] and pidfile is not None and 'pid-file' not in runargs: + opts.setdefault('pid_file', '') + if opts['daemon'] and pidfile is not None and not opts['pid_file']: + opts['pid_file'] = pidfile runargs.append("--pid-file=%s" % pidfile) service = service()