Show More
@@ -2201,7 +2201,9 def makelock(info, pathname): | |||||
2201 |
|
2201 | |||
2202 | flags = os.O_CREAT | os.O_WRONLY | os.O_EXCL | getattr(os, 'O_BINARY', 0) |
|
2202 | flags = os.O_CREAT | os.O_WRONLY | os.O_EXCL | getattr(os, 'O_BINARY', 0) | |
2203 | ld = os.open(pathname, flags) |
|
2203 | ld = os.open(pathname, flags) | |
|
2204 | try: | |||
2204 | os.write(ld, info) |
|
2205 | os.write(ld, info) | |
|
2206 | finally: | |||
2205 | os.close(ld) |
|
2207 | os.close(ld) | |
2206 |
|
2208 | |||
2207 |
|
2209 |
General Comments 0
You need to be logged in to leave comments.
Login now