daemon
Advanced tools
+10
-4
| # -*- coding: utf-8 -*- | ||
| # Copyright (c) 2009-2010 Sauce Labs Inc | ||
| # Copyright (c) 2009-2014 Sauce Labs Inc | ||
| # | ||
@@ -82,3 +82,7 @@ # Portions taken from twistd: | ||
| def writePID(pidfile): | ||
| open(pidfile,'wb').write(str(os.getpid())) | ||
| try: | ||
| f = open(pidfile,'wb') | ||
| f.write(str(os.getpid())) | ||
| finally: | ||
| f.close() | ||
| if not os.path.exists(pidfile): | ||
@@ -93,5 +97,8 @@ raise Exception( "pidfile %s does not exist" % pidfile ) | ||
| try: | ||
| pid = int(open(pidfile).read()) | ||
| f = open(pidfile) | ||
| pid = int(f.read()) | ||
| except ValueError: | ||
| sys.exit('Pidfile %s contains non-numeric value' % pidfile) | ||
| finally: | ||
| f.close() | ||
| try: | ||
@@ -114,2 +121,1 @@ os.kill(pid, 0) | ||
| writePID(pidfile) | ||
+1
-1
| Metadata-Version: 1.0 | ||
| Name: daemon | ||
| Version: 1.0 | ||
| Version: 1.1 | ||
| Summary: UNKNOWN | ||
@@ -5,0 +5,0 @@ Home-page: UNKNOWN |
+1
-1
@@ -7,4 +7,4 @@ # -*- coding: utf-8 -*- | ||
| name="daemon", | ||
| version="1.0", | ||
| version="1.1", | ||
| py_modules=['daemon'] | ||
| ) |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
3770
3.12%119
6.25%