JianyuWang0623 opened a new pull request, #3150:
URL: https://github.com/apache/nuttx-apps/pull/3150

   ## Summary
   Add parent process ID support for command ps, get from 
"/proc/<PID>/group/status:Parent".
   
   ## Impact
   - nsh/ps
   
   ## Testing
   ```bash
     nsh> sh
     nsh> ps
       PID  PPID GROUP CPU PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK  
          STACK COMMAND
     ... ...
         3     0     3 --- 100 RR       Task      - Waiting  Signal    
0000000000000000 0008136 nsh_main
     ... ...
         9     3     9   0 100 RR       Task      - Running            
0000000000000000 0004064 sh
   
     nsh> sleep 100 &
     sh [10:100]
     nsh> ps
       PID  PPID GROUP CPU PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK  
          STACK COMMAND
     ... ...
         3     0     3 --- 100 RR       Task      - Waiting  Signal    
0000000000000000 0008136 nsh_main
     ... ...
         9     3     9   0 100 RR       Task      - Running            
0000000000000000 0004064 sh
        10     9    10 --- 100 RR       Task      - Waiting  Signal    
0000000000000000 0004040 sh -c sleep
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to