Show More
@@ -45,6 +45,7 b' import errno' | |||||
45 | import gc |
|
45 | import gc | |
46 | import inspect |
|
46 | import inspect | |
47 | import os |
|
47 | import os | |
|
48 | import random | |||
48 | import re |
|
49 | import re | |
49 | import struct |
|
50 | import struct | |
50 | import sys |
|
51 | import sys | |
@@ -540,6 +541,9 b' class _requesthandler(SocketServer.Strea' | |||||
540 | # process pass kernel "is_current_pgrp_orphaned" check so signals like |
|
541 | # process pass kernel "is_current_pgrp_orphaned" check so signals like | |
541 | # SIGTSTP, SIGTTIN, SIGTTOU are not ignored. |
|
542 | # SIGTSTP, SIGTTIN, SIGTTOU are not ignored. | |
542 | os.setpgid(0, 0) |
|
543 | os.setpgid(0, 0) | |
|
544 | # change random state otherwise forked request handlers would have a | |||
|
545 | # same state inherited from parent. | |||
|
546 | random.seed() | |||
543 | ui = self.server.ui |
|
547 | ui = self.server.ui | |
544 | repo = self.server.repo |
|
548 | repo = self.server.repo | |
545 | sv = None |
|
549 | sv = None |
General Comments 0
You need to be logged in to leave comments.
Login now