diff options
-rw-r--r-- | Demo/sockets/unixserver.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Demo/sockets/unixserver.py b/Demo/sockets/unixserver.py index d4c7061..d4425f0 100644 --- a/Demo/sockets/unixserver.py +++ b/Demo/sockets/unixserver.py @@ -1,5 +1,6 @@ # Echo server demo using Unix sockets (handles one connection only) # Piet van Oostrum +import os from socket import * FILE = 'blabla' s = socket(AF_UNIX, SOCK_STREAM) @@ -13,3 +14,4 @@ while 1: if not data: break conn.send(data) conn.close() +os.unlink(FILE) |