Ref #2801 : Correct syntax
Fixes #2801: remove unused and buggy code
Fixes #2801: fix logic error and avoid error about not function
Merge pull request #120 from jooooooon/bug_2801/Syntax_error_in_process_management

Bug 2801/syntax error in process management