|
From: Tom H. <th...@cy...> - 2003-11-06 18:40:09
|
In message <106...@ix...>
Jeremy Fitzhardinge <je...@go...> wrote:
> On Thu, 2003-11-06 at 03:49, Tom Hughes wrote:
> > There appears to be a bug in the new system call handling that causes
> > a system call to get executed twice sometimes, seemingly when a signal
> > occurs at the wrong time.
> >
> > The attached program demonstrates the problem. It creates a temporary
> > file containing two characters, an A followed by a B. It then forces
> > an alarm signal to occur every second and repeatedly seeks to the
> > start of the file and reads one character, which should always be an A
> > but occasionally it is a B instead.
> >
> > Disabling the alarm signals cures the problem.
>
> Oh, what kernel/distro?
RedHat 9 with the latest kernel package.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|