##// END OF EJS Templates
chg: ignore already closed fds when cleaning up...
Raphaël Gomès -
r50135:20122284 stable
parent child Browse files
Show More
@@ -465,6 +465,7 b' class chgcmdserver(commandserver.server)'
465 os.dup2(nullfd, fp.fileno())
465 os.dup2(nullfd, fp.fileno())
466 fp.flush()
466 fp.flush()
467 os.dup2(fd, fp.fileno())
467 os.dup2(fd, fp.fileno())
468 os.close(fd)
468 except OSError as err:
469 except OSError as err:
469 # According to issue6330, running chg on heavy loaded systems
470 # According to issue6330, running chg on heavy loaded systems
470 # can lead to EBUSY. [man dup2] indicates that, on Linux,
471 # can lead to EBUSY. [man dup2] indicates that, on Linux,
@@ -477,7 +478,6 b' class chgcmdserver(commandserver.server)'
477 stringutil.forcebytestr(err),
478 stringutil.forcebytestr(err),
478 fn,
479 fn,
479 )
480 )
480 os.close(fd)
481 setattr(self, cn, ch)
481 setattr(self, cn, ch)
482 setattr(ui, fn, fp)
482 setattr(ui, fn, fp)
483 os.close(nullfd)
483 os.close(nullfd)
General Comments 0
You need to be logged in to leave comments. Login now