Red Hat Bugzilla – Bug 180256
alarm() not returning correct value
Last modified: 2007-11-30 17:11:23 EST
With glibc-2.3.90-30.i686.rpm installed February 1 along with about 1,000
other FC devel packages, including kernel-smp-2.6.15-1.1884_FC5smp and gcc-
4.1.0-0.18, this C program:
printf("alarm returned %d\n", alarm(0));
prints "alarmed return 0'. It *should* print "alarm returned 5" or
perhaps "alarm returned 4".
*** Bug 180257 has been marked as a duplicate of this bug. ***
Sorry, can't reproduce this. On all arches I have tried (which includes
i686), with glibc-2.3.90-36 the program prints 5.
It was a kernel bug. It's gone in the current Raw Hide kernel.