diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-18 16:37:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-18 16:37:37 +0000 |
commit | 3ff155d04803d8b19f0f56602e95b4034bc33820 (patch) | |
tree | ad05ee2dccc40b4103f5077dc5d66367a16bba83 /nuttx/sched/task_posixspawn.c | |
parent | 55b9700d59bb38db9427258b5dd2e1020a6fef67 (diff) | |
download | px4-firmware-3ff155d04803d8b19f0f56602e95b4034bc33820.tar.gz px4-firmware-3ff155d04803d8b19f0f56602e95b4034bc33820.tar.bz2 px4-firmware-3ff155d04803d8b19f0f56602e95b4034bc33820.zip |
Beginnings of definitions for the LPC1788; convert olimex-lpc1766stk to use kconfig-frontends
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5533 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_posixspawn.c')
-rw-r--r-- | nuttx/sched/task_posixspawn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/sched/task_posixspawn.c b/nuttx/sched/task_posixspawn.c index 4201e759b..7bb9c9a4d 100644 --- a/nuttx/sched/task_posixspawn.c +++ b/nuttx/sched/task_posixspawn.c @@ -40,6 +40,7 @@ #include <nuttx/config.h> #include <sys/wait.h> +#include <unistd.h> #include <semaphore.h> #include <signal.h> #include <sched.h> @@ -431,7 +432,7 @@ static int spawn_proxy(int argc, char *argv[]) * What should we do in the event of a failure? */ - int tmp = task_reparent(0, 0, *g_ps_parms.pid); + int tmp = task_reparent(0, *g_ps_parms.pid); if (tmp < 0) { sdbg("ERROR: task_reparent() failed: %d\n", tmp); |