Show More
@@ -587,13 +587,13 b' class AutoExitMixIn: # use old-style to' | |||||
587 | bakwdfd = os.open('.', os.O_DIRECTORY) |
|
587 | bakwdfd = os.open('.', os.O_DIRECTORY) | |
588 | os.chdir(dirname) |
|
588 | os.chdir(dirname) | |
589 | self.socket.bind(basename) |
|
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 | if bakwdfd: |
|
590 | if bakwdfd: | |
595 | os.fchdir(bakwdfd) |
|
591 | os.fchdir(bakwdfd) | |
596 | os.close(bakwdfd) |
|
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 | def issocketowner(self): |
|
598 | def issocketowner(self): | |
599 | try: |
|
599 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now