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 | 0191f2d9e4a4c9857ee37655dd3da523cf74a48a (patch) | |
tree | df530299e0171e8a86a2709ed4f19a1468efda4e /nuttx/sched/os_internal.h | |
parent | 0d8a269d4bbb18fa509e642ae2eaec8a8c80a1c3 (diff) | |
download | px4-nuttx-0191f2d9e4a4c9857ee37655dd3da523cf74a48a.tar.gz px4-nuttx-0191f2d9e4a4c9857ee37655dd3da523cf74a48a.tar.bz2 px4-nuttx-0191f2d9e4a4c9857ee37655dd3da523cf74a48a.zip |
Use SIGCHLD with waitpid(); implemented wait() and waitid()
git-svn-id: svn://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 |