diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-15 15:40:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-15 15:40:18 +0000 |
commit | 90a72e97d3f18a5e230578c63113da119622a73a (patch) | |
tree | ac5859a191e82fae017790748289f326790342b7 /nuttx/sched | |
parent | f55cabeb593496691293a330daa7c6a3d99eae2e (diff) | |
download | px4-firmware-90a72e97d3f18a5e230578c63113da119622a73a.tar.gz px4-firmware-90a72e97d3f18a5e230578c63113da119622a73a.tar.bz2 px4-firmware-90a72e97d3f18a5e230578c63113da119622a73a.zip |
Implement vfork() for the MIPS32 architecture
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5520 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/task_vfork.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/sched/task_vfork.c b/nuttx/sched/task_vfork.c index 4b42c7b36..46b2d8e9f 100644 --- a/nuttx/sched/task_vfork.c +++ b/nuttx/sched/task_vfork.c @@ -287,7 +287,11 @@ pid_t task_vforkstart(FAR _TCB *child) #endif #else - /* Again exploiting that execv() bug: Check if the child thread is + /* The following logic does not appear to work... It gets stuff in an + * infinite kill() loop and hogs the processor. Therefore, it looks + * as though CONFIG_SCHED_WAITPID may be a requirement to used vfork(). + * + * Again exploiting that execv() bug: Check if the child thread is * still running. */ @@ -331,4 +335,4 @@ void task_vforkabort(FAR _TCB *child, int errcode) sched_releasetcb(child); set_errno(errcode); -}
\ No newline at end of file +} |