Show More
@@ -587,13 +587,13 b' class AutoExitMixIn: # use old-style to' | |||
|
587 | 587 | bakwdfd = os.open('.', os.O_DIRECTORY) |
|
588 | 588 | os.chdir(dirname) |
|
589 | 589 | self.socket.bind(basename) |
|
590 | self._socketstat = os.stat(basename) | |
|
591 | # rename will replace the old socket file if exists atomically. the | |
|
592 | # old server will detect ownership change and exit. | |
|
593 | util.rename(basename, self.server_address) | |
|
594 | 590 | if bakwdfd: |
|
595 | 591 | os.fchdir(bakwdfd) |
|
596 | 592 | os.close(bakwdfd) |
|
593 | self._socketstat = os.stat(tempaddress) | |
|
594 | # rename will replace the old socket file if exists atomically. the | |
|
595 | # old server will detect ownership change and exit. | |
|
596 | util.rename(tempaddress, self.server_address) | |
|
597 | 597 | |
|
598 | 598 | def issocketowner(self): |
|
599 | 599 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now