[rtems commit] psxualarm: Avoid endless signal handling

Sebastian Huber sebh at rtems.org
Wed May 20 07:12:03 UTC 2015


Module:    rtems
Branch:    master
Commit:    20b423c6f2448c9c8aa1c2915a3d6f982302ea70
Changeset: http://git.rtems.org/rtems/commit/?id=20b423c6f2448c9c8aa1c2915a3d6f982302ea70

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon May 11 15:02:51 2015 +0200

psxualarm: Avoid endless signal handling

Increase the ualarm timer interval to avoid endless signal handling.

---

 testsuites/psxtests/psxualarm/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuites/psxtests/psxualarm/init.c b/testsuites/psxtests/psxualarm/init.c
index 03e03b9..ffe4720 100644
--- a/testsuites/psxtests/psxualarm/init.c
+++ b/testsuites/psxtests/psxualarm/init.c
@@ -86,9 +86,9 @@ void *POSIX_Init(
   act.sa_handler = Signal_handler;
   act.sa_flags   = 0;
   sigaction( SIGALRM, &act, NULL );
-  puts( "Init: ualarm in 1 us" );
+  puts( "Init: ualarm in 100000 us" );
   sleep(3);
-  result = ualarm(1,0);
+  result = ualarm(100000,0);
   rtems_test_assert( result == 0 );
   
   status = sleep(10);



More information about the vc mailing list