diff options
author | Skip Montanaro <skip@pobox.com> | 2003-08-01 14:20:02 +0000 |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2003-08-01 14:20:02 +0000 |
commit | 747679c280a17eb31b40ae091488ba1507e89809 (patch) | |
tree | a6a76800fea627746679ce769f7511d28d3c348c /Demo/sockets | |
parent | 939cbe7b78fe1db3b250a5e8064622983f39f75e (diff) | |
download | cpython-747679c280a17eb31b40ae091488ba1507e89809.tar.gz |
To be a good citizen, it should really delete its socket when done.
Diffstat (limited to 'Demo/sockets')
-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 d4c706188f..d4425f08c8 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) |