summaryrefslogtreecommitdiff
path: root/apps/examples/ostest/ostest_main.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-13 18:53:00 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-13 18:53:00 +0000
commit0191f2d9e4a4c9857ee37655dd3da523cf74a48a (patch)
treedf530299e0171e8a86a2709ed4f19a1468efda4e /apps/examples/ostest/ostest_main.c
parent0d8a269d4bbb18fa509e642ae2eaec8a8c80a1c3 (diff)
downloadpx4-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 'apps/examples/ostest/ostest_main.c')
-rw-r--r--apps/examples/ostest/ostest_main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/examples/ostest/ostest_main.c b/apps/examples/ostest/ostest_main.c
index ca44353c3..aab1ff045 100644
--- a/apps/examples/ostest/ostest_main.c
+++ b/apps/examples/ostest/ostest_main.c
@@ -301,6 +301,14 @@ static int user_main(int argc, char *argv[])
check_test_memory_usage();
#endif
+#ifdef CONFIG_SCHED_WAITPID
+ /* Check waitpid() and friends */
+
+ printf("\nuser_main: waitpid test\n");
+ waitpid_test();
+ check_test_memory_usage();
+#endif
+
#ifndef CONFIG_DISABLE_PTHREAD
/* Verify pthreads and pthread mutex */