diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-13 18:53:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-13 18:53:00 +0000 |
commit | b3f3dd123c181fe851f0a9756bed7acd4ba4ef7d (patch) | |
tree | df530299e0171e8a86a2709ed4f19a1468efda4e /nuttx/sched/os_internal.h | |
parent | ffda55b34a9a8a4a84f4cbc1da3836b944baec46 (diff) | |
download | px4-firmware-b3f3dd123c181fe851f0a9756bed7acd4ba4ef7d.tar.gz px4-firmware-b3f3dd123c181fe851f0a9756bed7acd4ba4ef7d.tar.bz2 px4-firmware-b3f3dd123c181fe851f0a9756bed7acd4ba4ef7d.zip |
Use SIGCHLD with waitpid(); implemented wait() and waitid()
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5515 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/os_internal.h')
-rw-r--r-- | nuttx/sched/os_internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/os_internal.h b/nuttx/sched/os_internal.h index 13b8083cf..32d9fb4ac 100644 --- a/nuttx/sched/os_internal.h +++ b/nuttx/sched/os_internal.h @@ -83,10 +83,10 @@ enum os_crash_codes_e OSERR_BADREPRIORITIZESTATE /* Attempt to reprioritize in bad state or priority */ }; -/* Special task IDS */ +/* Special task IDS. Any negative PID is invalid. */ -#define NULL_TASK_PROCESS_ID 0 -#define INVALID_PROCESS_ID 0 +#define NULL_TASK_PROCESS_ID (pid_t)0 +#define INVALID_PROCESS_ID (pid_t)-1 /* Although task IDs can take the (positive, non-zero) * range of pid_t, the number of tasks that will be supported |