clean stop script
[electrum-server.git] / backends / irc / __init__.py
index cf830b9..8dae94e 100644 (file)
@@ -200,6 +200,10 @@ class ServerProcessor(Processor):
         elif method == 'server.version':
             result = VERSION
 
+        elif method == 'server.getpid':
+            import os
+            result = os.getpid()
+
         elif method == 'server.stop':
             self.shared.stop()
             result = 'stopping, please wait until all threads terminate.'