# HG changeset patch # User Marcin Kuzminski # Date 2018-02-03 18:49:52 # Node ID 2560c64d9546e2594c12ef5adbd4255ad7c076e6 # Parent 7da6cab7eada1c7fb35cef18313343d272d204a7 http: status will return PID to help check stuck workers. diff --git a/vcsserver/http_main.py b/vcsserver/http_main.py --- a/vcsserver/http_main.py +++ b/vcsserver/http_main.py @@ -15,6 +15,7 @@ # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +import os import base64 import locale import logging @@ -276,7 +277,8 @@ class HTTPApplication(object): def status_view(self, request): import vcsserver - return {'status': 'OK', 'vcsserver_version': vcsserver.__version__} + return {'status': 'OK', 'vcsserver_version': vcsserver.__version__, + 'pid': os.getpid()} def service_view(self, request): import vcsserver