diff -r d02ce497395c -r 663f82cc659b tweetcast/server-gevent/tweetcast.py --- a/tweetcast/server-gevent/tweetcast.py Tue Dec 20 15:37:49 2011 +0100 +++ b/tweetcast/server-gevent/tweetcast.py Tue Dec 20 16:26:19 2011 +0100 @@ -111,6 +111,22 @@ return tweetdict +def unlink(path): + from errno import ENOENT + try: + os.unlink(path) + except OSError, ex: + if ex.errno != ENOENT: + raise + +def link(src, dest): + from errno import ENOENT + try: + os.link(src, dest) + except OSError, ex: + if ex.errno != ENOENT: + raise + def bind_unix_listener(path, backlog=50, user=None): pid = os.getpid() tempname = '%s.%s.tmp' % (path, pid) @@ -182,7 +198,7 @@ start_response('404 Not Found', [('Content-Type', 'text/html')]) return ['