Github user caofangkun commented on a diff in the pull request:

    https://github.com/apache/storm/pull/296#discussion_r19007702
  
    --- Diff: storm-core/src/clj/backtype/storm/util.clj ---
    @@ -372,6 +372,13 @@
           (throw (RuntimeException. (str "Got unexpected process name: " 
name))))
         (first split)))
     
    +(defn exists-process?
    +   [process-id]  
    +   (if on-windows?
    +       (exec-command! ( str "tasklist /v /fi \"PID eq "  process-id "\""))
    --- End diff --
    
    @itaifrenkel 
    Thank you .
    == Check if process id 21320 exists, should return 0 ==
    C:\Users\***>tasklist /v /fi "PID eq 21320" | find /i "21320"
    cmd.exe                      21320 Console                    1      3,184 
K Run
    ning         ****\****\                                         0:00:00 
***: C:\windows\system32\cmd.exe
    
    C:\Users\***>echo %errorlevel%
    0
    
    === Check if process id 21322 exists, should return 1 ==
    C:\Users\***>tasklist /v /fi "PID eq 21320" | find /i "21322"
    
    C:\Users\***>echo %errorlevel%
    1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to