[tor-commits] [stem/master] Note that set_process_name can raise IOErrors

atagar at torproject.org atagar at torproject.org
Wed Oct 24 20:54:35 UTC 2018


commit 4f993e79ff1acc9e565b190be97f9a30a066fcc3
Author: Damian Johnson <atagar at torproject.org>
Date:   Fri Oct 19 12:05:12 2018 -0700

    Note that set_process_name can raise IOErrors
    
    Oops, the code explicitly raises these when unable to do so but our docs didn't
    mention it.
---
 stem/util/system.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/stem/util/system.py b/stem/util/system.py
index 17eeb61d..2d52b022 100644
--- a/stem/util/system.py
+++ b/stem/util/system.py
@@ -1409,6 +1409,8 @@ def set_process_name(process_name):
   best-effort, not necessarily working on all platforms.
 
   :param str process_name: new name for our process
+
+  :raises: **IOError** if the process cannot be renamed
   """
 
   # This is mostly based on...





More information about the tor-commits mailing list