RoCorbera opened a new pull request #742:
URL: https://github.com/apache/incubator-nuttx-apps/pull/742


   ## Summary
   nsh kill cmd can be executed with no signal option.
   SIGTERM is the default signal, as in unix kill command.
   **nsh>** kill [-\<signal\>] \<pid\>
   
   ## Impact
   Using SIGTERM as default signal makes nsh kill command to get closer to the 
unix version.
   Given that NuttX allows to change the signal number of any signal and that 
default signal# for SIGTERM in NuttX is 12 (and 15 for POSIX signal), it is 
hard to guess what signal should be used to nicely kill a task.
   Thus by using a default SIGTERM signal in kill command, the user just has to 
use the "kill \<pid\>" to always terminate a task.
   
   ## Testing
   Tested in flat mode with CONFIG_SIG_DEFAULT=y as well as undefined.
   


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to