On Wed, Aug 02, 2000 at 04:06:15PM +1000, Stuart Warren wrote:
> Hi Nathan,
>
> I've tried out pre6e and found that the rtlsigtimer_app in the
> regression directory will crash my computer when calling
> rtlinux_sigprocmask. When these calls are removed, the test will work.
Hmm, 3.0-pre6e compiled with gcc-2.95.2 right out of the tar.gz
doesn't crash for me. The only thing that i can think of is to try changing
rtlinux_sigset_t rtlinux_blocked;
in psc/rtlinux_signal.c to
rtlinux_sigset_t rtlinux_blocked = {0,};
(this fix should also be in the next release of RTLinux).
This really shouldn't make a difference, though, as the signal set should be
zeroed out by rtlinux_sigemptyset() on line 31 of rtlsigtimer_app.c. What
version of gcc and the kernel are you using?
> It looks like there a minor problem with the logic for testing the
> results. I changed it to:
>
>
> /* check that the timers went off the right number of times */
> if ((*marker_ptr != 8) || (*marker2_ptr != 16))
> {
> ....
> }
>
> (ditto for the single periodic timer test)
>
> The results showed that each periodic task would run just once
> (*marker2_ptr was 1).
>
> I found the same with a test program I was using. It worked okay under
> pre6d.
>
> Any ideas? Need more info?
RTLINUX_SA_ONESHOT and RTLINUX_SA_RESETHAND are the same; to get a
periodic timer set the sa_flags of your rtlinux_sigaction to 0. i will fix
the timer test (rtlsigtimer_app.c) to reflect this, as well as the logic
problems.
--
Nathan Paul Simons, Programmer for FSMLabs
http://www.fsmlabs.com/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/