diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-09 17:22:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-09 17:22:55 +0000 |
commit | 13135dc63a89640cf0feac24617e9c401badfbf4 (patch) | |
tree | 3b884630ff91504135bf160be948a15bcb47927a /nuttx/examples/ostest/sighand.c | |
parent | cb4bc1a2f49306879ecee08f0644300f0037d92c (diff) | |
download | px4-nuttx-13135dc63a89640cf0feac24617e9c401badfbf4.tar.gz px4-nuttx-13135dc63a89640cf0feac24617e9c401badfbf4.tar.bz2 px4-nuttx-13135dc63a89640cf0feac24617e9c401badfbf4.zip |
Finished C5471 Integrationnuttx-1.0
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@48 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest/sighand.c')
-rw-r--r-- | nuttx/examples/ostest/sighand.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/examples/ostest/sighand.c b/nuttx/examples/ostest/sighand.c index f6970deb0..b5b1ad806 100644 --- a/nuttx/examples/ostest/sighand.c +++ b/nuttx/examples/ostest/sighand.c @@ -216,16 +216,19 @@ void sighand_test(void) } else { - printf("sighand_test: Started waiter_main pid=%d\n" , waiterpid); + printf("sighand_test: Started waiter_main pid=%d\n", waiterpid); } /* Wait a bit */ fflush(stdout); - usleep(500*1000); + sleep(2); /* Then signal the waiter thread. */ + printf("sighand_test: Signaling pid=%d with signo=%d sigvalue=%d\n", + waiterpid, WAKEUP_SIGNAL, SIGVALUE_INT); + sigvalue.sival_int = SIGVALUE_INT; #ifdef CONFIG_CAN_PASS_STRUCTS status = sigqueue(waiterpid, WAKEUP_SIGNAL, sigvalue); @@ -241,7 +244,7 @@ void sighand_test(void) /* Wait a bit */ fflush(stdout); - usleep(500*1000); + sleep(2); /* Then check the result */ |