[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Fixing integ test test_set_process_name



commit 84c59fa0f15ea40b5fe648ddd7d00a7476effda5
Author: Denis Nuțiu <nutiudenis@xxxxxxxxxxx>
Date:   Tue Mar 28 22:44:16 2017 +0300

    Fixing integ test test_set_process_name
---
 stem/util/system.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stem/util/system.py b/stem/util/system.py
index 4951058..a3ec756 100644
--- a/stem/util/system.py
+++ b/stem/util/system.py
@@ -1271,7 +1271,7 @@ def _set_proc_title(process_name):
 
   libc = ctypes.CDLL(ctypes.util.find_library('c'))
   name_buffer = ctypes.create_string_buffer(len(process_name) + 1)
-  name_buffer.value = process_name
+  name_buffer.value = process_name.encode()
 
   try:
     libc.setproctitle(ctypes.byref(name_buffer))

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits