Merge pull request #36203 from xiaoanyunfei/logowner

fix owner of MultiprocessingLoggingQueue
This commit is contained in:
Mike Place 2016-09-11 18:15:15 +09:00 committed by GitHub
commit f11f093f8c

View File

@ -931,6 +931,8 @@ def patch_python_logging_handlers():
def __process_multiprocessing_logging_queue(opts, queue): def __process_multiprocessing_logging_queue(opts, queue):
import salt.utils import salt.utils
salt.utils.appendproctitle('MultiprocessingLoggingQueue') salt.utils.appendproctitle('MultiprocessingLoggingQueue')
from salt.utils.verify import check_user
check_user(opts['user'])
if salt.utils.is_windows(): if salt.utils.is_windows():
# On Windows, creating a new process doesn't fork (copy the parent # On Windows, creating a new process doesn't fork (copy the parent
# process image). Due to this, we need to setup extended logging # process image). Due to this, we need to setup extended logging