From d650fa1aa12da24a66f3a548ad93b873027135bd Mon Sep 17 00:00:00 2001 From: Ciro Date: Tue, 31 May 2022 18:57:36 -0300 Subject: [PATCH] added pid to forks sampl --- tests/examples/forks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/examples/forks.py b/tests/examples/forks.py index 141af22..752850e 100644 --- a/tests/examples/forks.py +++ b/tests/examples/forks.py @@ -5,7 +5,7 @@ import multiprocessing def run_app(): app = App() app.get("/", lambda res, req: res.end("Hello World socketify from Python!")) - app.listen(3000, lambda config: print("Listening on port http://localhost:%d now\n" % config.port)) + app.listen(3000, lambda config: print("PID %d Listening on port http://localhost:%d now\n" % (os.getpid(), config.port))) app.run() def create_fork():