|
From: Jeremy F. <je...@go...> - 2003-11-06 17:14:31
|
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? J |