Cosmetic cleanup from SIGCHLD changes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5514 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
e3b0979fcf
commit
77960c8ca8
@ -57,7 +57,12 @@ static bool threadexited = false;
|
|||||||
#ifdef CONFIG_SCHED_HAVE_PARENT
|
#ifdef CONFIG_SCHED_HAVE_PARENT
|
||||||
static void death_of_child(int signo, siginfo_t *info, void *ucontext)
|
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)
|
if (info)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user