summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/python/lib/daemon.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/python/lib/daemon.md b/share/python/lib/daemon.md
index 2a9a2e0..c4f5e27 100644
--- a/share/python/lib/daemon.md
+++ b/share/python/lib/daemon.md
@@ -51,7 +51,10 @@ import time
time.sleep(2)
-s = socket.create_server(("", 8888))
+s = socket.socket()
+s.bind(("127.0.0.1", 8888))
+s.listen()
+
(conn, _) = s.accept()
conn.recv(1)
s.close()