diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/master_daemon.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/master_daemon.py b/scripts/master_daemon.py index c3c9c2d8..855358ff 100755 --- a/scripts/master_daemon.py +++ b/scripts/master_daemon.py @@ -162,6 +162,11 @@ def _check_path_under_current_or_temp(path): if getpass.getuser() != 'root': fail('Please run this program as root/with sudo') +pid = os.getpid() +ret = os.system('taskset -pc 0 %s' % pid) +if ret: + fail('Could not set self affinity to core zero.') + daemon_actions = OrderedDict([('start', 'start the daemon'), ('stop', 'exit the daemon process'), ('show', 'prompt the status of daemon process (running / not running)'), |