Show More
@@ -606,10 +606,11 b' class chgunixservicehandler(object):' | |||||
606 |
|
606 | |||
607 | def shouldexit(self): |
|
607 | def shouldexit(self): | |
608 | if not self._issocketowner(): |
|
608 | if not self._issocketowner(): | |
609 |
self.ui. |
|
609 | self.ui.log(b'chgserver', b'%s is not owned, exiting.\n', | |
|
610 | self._realaddress) | |||
610 | return True |
|
611 | return True | |
611 | if time.time() - self._lastactive > self._idletimeout: |
|
612 | if time.time() - self._lastactive > self._idletimeout: | |
612 |
self.ui. |
|
613 | self.ui.log(b'chgserver', b'being idle too long. exiting.\n') | |
613 | return True |
|
614 | return True | |
614 | return False |
|
615 | return False | |
615 |
|
616 |
@@ -573,7 +573,8 b' class unixforkingservice(object):' | |||||
573 | pid = os.fork() |
|
573 | pid = os.fork() | |
574 | if pid: |
|
574 | if pid: | |
575 | try: |
|
575 | try: | |
576 |
self.ui. |
|
576 | self.ui.log(b'cmdserver', | |
|
577 | b'forked worker process (pid=%d)\n', pid) | |||
577 | self._workerpids.add(pid) |
|
578 | self._workerpids.add(pid) | |
578 | h.newconnection() |
|
579 | h.newconnection() | |
579 | finally: |
|
580 | finally: | |
@@ -610,7 +611,7 b' class unixforkingservice(object):' | |||||
610 | if pid == 0: |
|
611 | if pid == 0: | |
611 | # no waitable child processes |
|
612 | # no waitable child processes | |
612 | return |
|
613 | return | |
613 |
self.ui. |
|
614 | self.ui.log(b'cmdserver', b'worker process exited (pid=%d)\n', pid) | |
614 | self._workerpids.discard(pid) |
|
615 | self._workerpids.discard(pid) | |
615 |
|
616 | |||
616 | def _runworker(self, conn): |
|
617 | def _runworker(self, conn): |
@@ -230,9 +230,7 b' print only the last 10 lines, since we a' | |||||
230 | preserved: |
|
230 | preserved: | |
231 |
|
231 | |||
232 | $ cat log/server.log.1 log/server.log | tail -10 | filterlog |
|
232 | $ cat log/server.log.1 log/server.log | tail -10 | filterlog | |
233 | YYYY/MM/DD HH:MM:SS (PID)> confighash = ... mtimehash = ... |
|
233 | YYYY/MM/DD HH:MM:SS (PID)> forked worker process (pid=...) | |
234 | YYYY/MM/DD HH:MM:SS (PID)> validate: [] |
|
|||
235 | YYYY/MM/DD HH:MM:SS (PID)> confighash = ... mtimehash = ... |
|
|||
236 | YYYY/MM/DD HH:MM:SS (PID)> setprocname: ... |
|
234 | YYYY/MM/DD HH:MM:SS (PID)> setprocname: ... | |
237 | YYYY/MM/DD HH:MM:SS (PID)> received fds: ... |
|
235 | YYYY/MM/DD HH:MM:SS (PID)> received fds: ... | |
238 | YYYY/MM/DD HH:MM:SS (PID)> chdir to '$TESTTMP/extreload' |
|
236 | YYYY/MM/DD HH:MM:SS (PID)> chdir to '$TESTTMP/extreload' | |
@@ -240,3 +238,5 b' preserved:' | |||||
240 | YYYY/MM/DD HH:MM:SS (PID)> setenv: ... |
|
238 | YYYY/MM/DD HH:MM:SS (PID)> setenv: ... | |
241 | YYYY/MM/DD HH:MM:SS (PID)> confighash = ... mtimehash = ... |
|
239 | YYYY/MM/DD HH:MM:SS (PID)> confighash = ... mtimehash = ... | |
242 | YYYY/MM/DD HH:MM:SS (PID)> validate: [] |
|
240 | YYYY/MM/DD HH:MM:SS (PID)> validate: [] | |
|
241 | YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...) | |||
|
242 | YYYY/MM/DD HH:MM:SS (PID)> $TESTTMP/extreload/chgsock/server-... is not owned, exiting. |
General Comments 0
You need to be logged in to leave comments.
Login now