summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/code_server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/code_server.py b/yaksh/code_server.py
index 6acce74..7bacc7f 100644
--- a/yaksh/code_server.py
+++ b/yaksh/code_server.py
@@ -232,10 +232,10 @@ def main(args=None):
options = parser.parse_args(args)
- server_pool = ServerPool(n=options.n, pool_port=options.port)
- # This is done *after* the server pool is created because when the tornado
- # app calls listen(), it cannot be nobody.
+ # Called before serverpool is created so that the multiprocessing
+ # can work properly.
run_as_nobody()
+ server_pool = ServerPool(n=options.n, pool_port=options.port)
server_pool.run()