diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/utils.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 0a1bf6880a..3bc243723b 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -1444,9 +1444,8 @@ def set_process_name(name): | |||
1444 | # This is nice to have for debugging, not essential | 1444 | # This is nice to have for debugging, not essential |
1445 | try: | 1445 | try: |
1446 | libc = cdll.LoadLibrary('libc.so.6') | 1446 | libc = cdll.LoadLibrary('libc.so.6') |
1447 | buff = create_string_buffer(len(name)+1) | 1447 | buf = create_string_buffer(bytes(name, 'utf-8')) |
1448 | buff.value = name | 1448 | libc.prctl(15, byref(buf), 0, 0, 0) |
1449 | libc.prctl(15, byref(buff), 0, 0, 0) | ||
1450 | except: | 1449 | except: |
1451 | pass | 1450 | pass |
1452 | 1451 | ||