diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-13 00:35:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-13 00:35:47 +0000 |
commit | 0d8a269d4bbb18fa509e642ae2eaec8a8c80a1c3 (patch) | |
tree | f74938699bd760dbbba52578827f5e100d7b3700 /apps | |
parent | 499c8c86de6757b39eaaf0f2b96a5b070f085b9b (diff) | |
download | px4-nuttx-0d8a269d4bbb18fa509e642ae2eaec8a8c80a1c3.tar.gz px4-nuttx-0d8a269d4bbb18fa509e642ae2eaec8a8c80a1c3.tar.bz2 px4-nuttx-0d8a269d4bbb18fa509e642ae2eaec8a8c80a1c3.zip |
Cosmetic cleanup from SIGCHLD changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5514 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/examples/ostest/sighand.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/examples/ostest/sighand.c b/apps/examples/ostest/sighand.c index 63d9590d9..32b182c21 100644 --- a/apps/examples/ostest/sighand.c +++ b/apps/examples/ostest/sighand.c @@ -57,7 +57,12 @@ static bool threadexited = false; #ifdef CONFIG_SCHED_HAVE_PARENT static void death_of_child(int signo, siginfo_t *info, void *ucontext) { - /* Use of printf in a signal handler is NOT safe! It can cause deadlocks! */ + /* Use of printf in a signal handler is NOT safe! It can cause deadlocks! + * Also, signals are not queued by NuttX. As a consequence, some + * notifications will get lost (or the info data can be overwrittedn)! + * Because POSIX does not require signals to be queued, I do not think + * that this is a bug (the overwriting is a bug, however). + */ if (info) { |