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 | fa14e61b3b4bca193293aba75f7ee106cbe4dd69 (patch) | |
tree | ac5859a191e82fae017790748289f326790342b7 /nuttx/sched/task_vfork.c | |
parent | 033512b6c83b46c4c052499faba7cc4b02ff4153 (diff) | |
download | px4-nuttx-fa14e61b3b4bca193293aba75f7ee106cbe4dd69.tar.gz px4-nuttx-fa14e61b3b4bca193293aba75f7ee106cbe4dd69.tar.bz2 px4-nuttx-fa14e61b3b4bca193293aba75f7ee106cbe4dd69.zip |
Implement vfork() for the MIPS32 architecture
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5520 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_vfork.c')
-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 +} |