diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-02 00:47:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-02 00:47:12 +0000 |
commit | dec7f69cce6af4bf8131c13467907477ffdc6500 (patch) | |
tree | 1b51f755e2c53fcfcdc211b20e429885bcc52e39 /nuttx/Documentation | |
parent | 9d5aa7cbb885563b3e1d8405ffc4663eaaf51dc7 (diff) | |
download | px4-nuttx-dec7f69cce6af4bf8131c13467907477ffdc6500.tar.gz px4-nuttx-dec7f69cce6af4bf8131c13467907477ffdc6500.tar.bz2 px4-nuttx-dec7f69cce6af4bf8131c13467907477ffdc6500.zip |
Fix and clarity 'kill' documentation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3328 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/Documentation')
-rw-r--r-- | nuttx/Documentation/NuttShell.html | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/nuttx/Documentation/NuttShell.html b/nuttx/Documentation/NuttShell.html index 754057917..87e8592e9 100644 --- a/nuttx/Documentation/NuttShell.html +++ b/nuttx/Documentation/NuttShell.html @@ -8,7 +8,7 @@ <tr align="center" bgcolor="#e4e4e4"> <td> <h1><big><font color="#3c34ec"><i>NuttShell (NSH)</i></font></big></h1> - <p>Last Updated: February 28, 2011</p> + <p>Last Updated: March 1, 2011</p> </td> </tr> </table> @@ -1006,8 +1006,33 @@ kill -<signal> <pid> </pre></ul> <p> <b>Synopsis</b>. - Send the <signal> to the task identified by <pid>. + Send the <signal> to the task identified by <pid>. </p> +<ul><pre> +nsh> mkfifo /dev/fifo +nsh> cat /dev/fifo & +cat [2:128] +nsh> ps +PID PRI SCHD TYPE NP STATE NAME + 0 0 FIFO TASK READY Idle Task() + 1 128 FIFO TASK RUNNING init() + 2 128 FIFO PTHREAD WAITSEM <pthread>(51ea50) +nsh> kill -9 2 +nsh: cat: open failed: 4 +nsh> ps +PID PRI SCHD TYPE NP STATE NAME + 0 0 FIFO TASK READY Idle Task() + 1 128 FIFO TASK RUNNING init() +nsh> +</pre></ul> +<p><small> + <b>NOTE</b>: + NuttX does not support a FULL POSIX signalling system. + Standard signals like SIGCHLD, SIGINTR, SIGKILL, etc. do not exist in NuttX and sending those signal may not have the result that you expect. + Rather, NuttX supports only what are referred to as POSIX real-time signals. + These signals may be used to communicate with running tasks, may be use to waiting waiting tasks, etc. + But, as an example, <code>kill -9</code> (SIGKILL) will not terminate a task. +</p></small> <table width ="100%"> <tr bgcolor="#e4e4e4"> |