diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2013-04-11 11:00:43 +0200 |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2013-04-11 11:00:43 +0200 |
commit | b8b41aad9abbf251397e8de5709a0e561463da85 (patch) | |
tree | 6f342e3a28e1a8e88c4e42496b1cecf6f8b802e5 | |
parent | 4443d885c6b6046f690e56b7185ae45ecd4fec94 (diff) | |
download | psutil-b8b41aad9abbf251397e8de5709a0e561463da85.tar.gz |
update some docstrings
-rw-r--r-- | psutil/__init__.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/psutil/__init__.py b/psutil/__init__.py index 50584953..1198e09a 100644 --- a/psutil/__init__.py +++ b/psutil/__init__.py @@ -681,8 +681,6 @@ class Process(object): On Windows only SIGTERM is valid and is treated as an alias for kill(). """ - # safety measure in case the current process has been killed in - # meantime and the kernel reused its PID if os.name == 'posix': try: os.kill(self.pid, sig) @@ -703,9 +701,11 @@ class Process(object): @_assert_is_running def suspend(self): - """Suspend process execution.""" - # windows + """Suspend process execution with SIGSTOP. + On Windows it suspends all process threads. + """ if hasattr(self._platform_impl, "suspend_process"): + # windows self._platform_impl.suspend_process() else: # posix @@ -713,9 +713,11 @@ class Process(object): @_assert_is_running def resume(self): - """Resume process execution.""" - # windows + """Resume process execution with SIGCONT. + On Windows it resumes all process threads. + """ if hasattr(self._platform_impl, "resume_process"): + # windows self._platform_impl.resume_process() else: # posix @@ -729,9 +731,7 @@ class Process(object): @_assert_is_running def kill(self): - """Kill the current process.""" - # safety measure in case the current process has been killed in - # meantime and the kernel reused its PID + """Kill the current process with SIGKILL.""" if os.name == 'posix': self.send_signal(signal.SIGKILL) else: |