diff options
Diffstat (limited to 'posts/bash:waitpid_function.rst')
-rw-r--r-- | posts/bash:waitpid_function.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/posts/bash:waitpid_function.rst b/posts/bash:waitpid_function.rst index 350dee6..dae296b 100644 --- a/posts/bash:waitpid_function.rst +++ b/posts/bash:waitpid_function.rst @@ -56,17 +56,17 @@ knowledge could be solved easily and in a portable, reproducible, and maintainable manner. The problems are more than just technical as well. Here are the problems that I see. -. It doesn't ensure the process stops before proceeding +* It doesn't ensure the process stops before proceeding -. Kill signal 0 does nothing except allow for error checking (eg: if the +* Kill signal 0 does nothing except allow for error checking (eg: if the process is still running). Check ``man 1 kill`` for more information. TLDR; Kill -0 shouldn't be used for asking a process to stop. -. The pid status check relies on the output from a subshell +* The pid status check relies on the output from a subshell -. There is no contingency for when the process won't shut down. +* There is no contingency for when the process won't shut down. -. The code exists outside of a function, and thus is more difficult to reuse +* The code exists outside of a function, and thus is more difficult to reuse Writing a waitpid function |